sethmcknight commited on
Commit
73885d2
·
1 Parent(s): c3d86c7

refactor: update Dockerfile to run app via Gunicorn on port 8080

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -2
Dockerfile CHANGED
@@ -39,8 +39,20 @@ COPY gunicorn.conf.py ./gunicorn.conf.py
39
 
40
  RUN chmod +x run.sh && chmod +x scripts/init_pgvector.py || true
41
 
42
- EXPOSE 10000
43
- CMD ["/app/run.sh"]
 
 
 
 
 
 
 
 
 
 
 
 
44
 
45
  # Optional dev stage for local tooling (not used in final image)
46
  FROM base AS dev
 
39
 
40
  RUN chmod +x run.sh && chmod +x scripts/init_pgvector.py || true
41
 
42
+ EXPOSE 8080
43
+
44
+ # Run the app via Gunicorn binding to 0.0.0.0:8080. Use conservative workers/threads
45
+ # to reduce memory usage on small instances.
46
+ CMD [
47
+ "gunicorn",
48
+ "-b",
49
+ "0.0.0.0:8080",
50
+ "-w",
51
+ "2",
52
+ "--threads",
53
+ "2",
54
+ "src.app_factory:app"
55
+ ]
56
 
57
  # Optional dev stage for local tooling (not used in final image)
58
  FROM base AS dev