factorstudios commited on
Commit
e904d9e
·
verified ·
1 Parent(s): 3e4e2e0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -6
Dockerfile CHANGED
@@ -19,16 +19,14 @@ COPY requirements.txt .
19
  RUN pip install --no-cache-dir -r requirements.txt
20
 
21
  # Copy application code
22
- # Note: .env is mounted via docker-compose volume
23
- COPY server.py .
24
 
25
  # Health check
26
  HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
27
- CMD curl -f http://localhost:7862/ || exit 1
28
 
29
- # Expose port 7862
30
  EXPOSE 7860
31
 
32
- # Run the server
33
  CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]
34
-
 
19
  RUN pip install --no-cache-dir -r requirements.txt
20
 
21
  # Copy application code
22
+ COPY compress.py .
 
23
 
24
  # Health check
25
  HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
26
+ CMD curl -f http://localhost:7860/ || exit 1
27
 
28
+ # Expose port 7860
29
  EXPOSE 7860
30
 
31
+ # Run the compression server
32
  CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]