Just4jcgeorge commited on
Commit
ea9dec0
·
verified ·
1 Parent(s): 3365bde

added ENTRYPOINT

Browse files

removed autogenstudio.web.app:app --bind "0.0.0.0:8081" and added to entrypoint below
ENTRYPOINT ["autogenstudio.web.app:app", "--bind", "0.0.0.0:8081", "--port", "7860"]

Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM python:3.10
2
 
3
  WORKDIR /code
4
 
@@ -15,4 +15,5 @@ WORKDIR $HOME/app
15
  COPY --chown=user . $HOME/app
16
  EXPOSE 7860
17
 
18
- CMD gunicorn -w $((2 * $(getconf _NPROCESSORS_ONLN) + 1)) --timeout 12600 -k uvicorn.workers.UvicornWorker autogenstudio.web.app:app --bind "0.0.0.0:8081"
 
 
1
+ FROM python:3.10.13-slim-bookworm
2
 
3
  WORKDIR /code
4
 
 
15
  COPY --chown=user . $HOME/app
16
  EXPOSE 7860
17
 
18
+ CMD gunicorn -w $((2 * $(getconf _NPROCESSORS_ONLN) + 1)) --timeout 12600 -k uvicorn.workers.UvicornWorker
19
+ ENTRYPOINT ["autogenstudio.web.app:app", "--bind", "0.0.0.0:8081", "--port", "7860"]