diff options
author | 2021-01-04 17:26:42 +0000 | |
---|---|---|
committer | 2021-01-04 17:26:42 +0000 | |
commit | b354f5fe1c6e1392a39c1f46fc9b79933b1ea9bb (patch) | |
tree | e20e4cd1b8c1c10a86e5e4da901397a0aa2c5301 /Dockerfile | |
parent | Use $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-- | Dockerfile | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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"] |