changed ports again

This commit is contained in:
RubenRWU
2026-03-25 13:49:30 +01:00
parent 1d5d7d6e81
commit b4e78206ed
3 changed files with 7 additions and 3 deletions

View File

@@ -2,7 +2,8 @@ FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1 \ ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \ PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 PIP_NO_CACHE_DIR=1 \
PORT=8276
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends \
@@ -25,4 +26,4 @@ ENV ENABLE_SPEAKER_DIARIZATION=false
EXPOSE 8276 EXPOSE 8276
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8276"] CMD ["sh", "-c", "uvicorn main:app --host 0.0.0.0 --port ${PORT}"]

View File

@@ -3,6 +3,8 @@ services:
build: . build: .
ports: ports:
- "8276:8276" - "8276:8276"
environment:
PORT: 8276
env_file: env_file:
- .env - .env
volumes: volumes:

View File

@@ -591,4 +591,5 @@ async def send(
if __name__ == "__main__": if __name__ == "__main__":
import uvicorn import uvicorn
uvicorn.run(app, host="0.0.0.0", port=8000) port = int(os.getenv("PORT", "8276"))
uvicorn.run(app, host="0.0.0.0", port=port)