thealper2 commited on
Commit
1afff6f
·
verified ·
1 Parent(s): c3d11ab

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -6
Dockerfile CHANGED
@@ -27,9 +27,4 @@ WORKDIR $HOME/code
27
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
28
  COPY --chown=user . $HOME/code
29
 
30
- ENV FLASK_APP=app.py
31
-
32
- EXPOSE 8000
33
-
34
- # Start the FastAPI app on port 7860, the default port expected by Spaces
35
- CMD ["flask", "run", "--host=0.0.0.0"]
 
27
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
28
  COPY --chown=user . $HOME/code
29
 
30
+ CMD ["gunicorn", "-b", "0.0.0.0:7860", "main:app"]