diff options
author | 2019-01-12 17:18:18 +0100 | |
---|---|---|
committer | 2019-01-12 17:18:18 +0100 | |
commit | 5ada9b4c2b70712bbbf135fce1d1e06ea84b57fa (patch) | |
tree | bd96e30d49b3af0fc1345efda97b89853413acdf /docker | |
parent | Document format query parameter. (diff) |
Collect static files in Docker image.
Diffstat (limited to 'docker')
-rw-r--r-- | docker/app/alpine/3.7/Dockerfile | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/docker/app/alpine/3.7/Dockerfile b/docker/app/alpine/3.7/Dockerfile index 4a8b5b34..c7ddc623 100644 --- a/docker/app/alpine/3.7/Dockerfile +++ b/docker/app/alpine/3.7/Dockerfile @@ -9,20 +9,21 @@ RUN adduser \ -u 1500 \ pysite -RUN apk add --no-cache --virtual build \ +RUN apk add --no-cache --update --virtual build \ gcc \ linux-headers \ musl-dev \ && \ - apk add --no-cache \ + apk add \ curl \ postgresql-dev WORKDIR /app COPY setup.py /app/setup.py -RUN python3 -m pip install .[$EXTRAS] -RUN apk del --purge build +RUN python3 -m pip install .[$EXTRAS] \ + && apk del --purge build COPY . . +RUN SECRET_KEY=abc DATABASE_URL=postgresql://fake:password@host/database python manage.py collectstatic CMD ["uwsgi", "--ini", "docker/app/uwsgi.ini"] |