wobure commited on
Commit
ab0f0a0
·
verified ·
1 Parent(s): a3d625a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -4,7 +4,7 @@ WORKDIR /app
4
 
5
  ENV PYTHONDONTWRITEBYTECODE=1 \
6
  PYTHONUNBUFFERED=1 \
7
- PORT=8000
8
 
9
  # Install dependencies
10
  RUN apt-get update && apt-get install -y gcc curl && rm -rf /var/lib/apt/lists/*
@@ -25,10 +25,10 @@ RUN pip install --no-cache-dir python-dotenv>=1.0.0
25
  RUN useradd --create-home ttsfm && chown -R ttsfm:ttsfm /app
26
  USER ttsfm
27
 
28
- EXPOSE 8000
29
 
30
  HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
31
- CMD curl -f http://localhost:8000/api/health || exit 1
32
 
33
  WORKDIR /app/ttsfm-web
34
- CMD ["python", "-m", "waitress", "--host=0.0.0.0", "--port=8000", "app:app"]
 
4
 
5
  ENV PYTHONDONTWRITEBYTECODE=1 \
6
  PYTHONUNBUFFERED=1 \
7
+ PORT=7860
8
 
9
  # Install dependencies
10
  RUN apt-get update && apt-get install -y gcc curl && rm -rf /var/lib/apt/lists/*
 
25
  RUN useradd --create-home ttsfm && chown -R ttsfm:ttsfm /app
26
  USER ttsfm
27
 
28
+
29
 
30
  HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
31
+ CMD curl -f http://localhost:7860/api/health || exit 1
32
 
33
  WORKDIR /app/ttsfm-web
34
+ CMD ["python", "-m", "waitress", "--host=0.0.0.0", "--port=7860", "app:app"]