From 41c4322ba15dbcf32227727da3c90b4db61c94a1 Mon Sep 17 00:00:00 2001 From: Kian-Tat Lim Date: Wed, 21 Feb 2024 17:30:32 -0800 Subject: [PATCH] Add server Dockerfile. --- Dockerfile.server | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Dockerfile.server diff --git a/Dockerfile.server b/Dockerfile.server new file mode 100644 index 00000000..9c2dd9c5 --- /dev/null +++ b/Dockerfile.server @@ -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" ] +