aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2021-01-04 17:26:42 +0000
committerGravatar GitHub <[email protected]>2021-01-04 17:26:42 +0000
commitb354f5fe1c6e1392a39c1f46fc9b79933b1ea9bb (patch)
treee20e4cd1b8c1c10a86e5e4da901397a0aa2c5301 /Dockerfile
parentUse $in operator for non-admin filtering to allow fetching closed forms (diff)
Re-order build args in Dockerfile
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Dockerfile b/Dockerfile
index b560d2d..b59110c 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,12 +3,6 @@ FROM python:3.9-slim
# Allow service to handle stops gracefully
STOPSIGNAL SIGQUIT
-# Set Git SHA build argument
-ARG git_sha="development"
-
-# Set Git SHA environment variable
-ENV GIT_SHA=$git_sha
-
# Install C compiler and make
RUN apt-get update && \
apt-get install -y gcc make && \
@@ -29,5 +23,11 @@ RUN poetry install --no-dev
WORKDIR /app
COPY . .
+# Set Git SHA build argument
+ARG git_sha="development"
+
+# Set Git SHA environment variable
+ENV GIT_SHA=$git_sha
+
# Start the server with uvicorn
CMD ["gunicorn", "-w", "2", "-b", "0.0.0.0:8000", "-k", "uvicorn.workers.UvicornWorker", "backend:app"]