From 0f48d6c81e1facb7936b987a4cbf78a3c93bf9dd Mon Sep 17 00:00:00 2001 From: Aaron Louie Date: Sun, 24 May 2020 17:18:56 -0400 Subject: [PATCH] Installs the app in the right place (maybe?) --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 01e48251..43073c86 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,6 @@ FROM ubuntu:bionic ARG DEBIAN_FRONTEND=noninteractive COPY --from=pipenv /app/dist/*.whl . -COPY wait-for-it.sh . RUN set -xe \ && apt-get update -q \ @@ -27,7 +26,7 @@ RUN set -xe \ python3-pip \ gunicorn3 \ postgresql-client \ - && python3 -m pip install *.whl \ + && python3 -m pip install --target=/app *.whl \ && apt-get remove -y python3-pip python3-wheel \ && apt-get autoremove -y \ && apt-get clean -y \ @@ -38,7 +37,10 @@ RUN set -xe \ && useradd _gunicorn --no-create-home --user-group USER _gunicorn -ADD crc/static /app/static + +COPY crc/static /app/static +COPY docker_run.sh /app +COPY wait-for-it.sh /app WORKDIR /app CMD ["gunicorn3", \