Skip to content

Commit

Permalink
Add server Dockerfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
ktlim committed Feb 22, 2024
1 parent 5945d81 commit 41c4322
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Dockerfile.server
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM python:3.11
RUN pip install flask gunicorn sqlalchemy
WORKDIR /consdb-server
COPY src/server.py /consdb-server/
# Environment variables that must be set:
# POSTGRES_URL
ENTRYPOINT [ "gunicorn", "-b", "0.0.0.0:8000", "-w", "2", "server:app" ]

0 comments on commit 41c4322

Please sign in to comment.