From b354f5fe1c6e1392a39c1f46fc9b79933b1ea9bb Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Mon, 4 Jan 2021 17:26:42 +0000 Subject: Re-order build args in Dockerfile --- Dockerfile | 12 ++++++------ 1 file 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"] -- cgit v1.2.3