ariansyahdedy commited on
Commit
14cdbfb
·
1 Parent(s): a1cc9cf

fix docker

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -28,5 +28,7 @@ RUN ls -l /code/output_frames
28
  ENV PATH="/code/venv/bin:$PATH"
29
 
30
  # Use PORT environment variable provided by Railway
31
- CMD ["uvicorn", "app.main:app", "--host", "${HOST}", "--port", "${PORT}"]
32
  # CMD ["sh", "-c", "uvicorn main:app --host 0.0.0.0 --port ${PORT}"]
 
 
 
28
  ENV PATH="/code/venv/bin:$PATH"
29
 
30
  # Use PORT environment variable provided by Railway
31
+ # CMD ["uvicorn", "app.main:app", "--host", "${HOST}", "--port", "${PORT}"]
32
  # CMD ["sh", "-c", "uvicorn main:app --host 0.0.0.0 --port ${PORT}"]
33
+ # Use a shell to expand environment variables
34
+ CMD ["sh", "-c", "uvicorn app.main:app --host $HOST --port $PORT"]