summaryrefslogtreecommitdiff
path: root/Dockerfile.production
diff options
context:
space:
mode:
authorJan Friedli2020-03-31 20:33:06 +0200
committerJan Friedli2020-05-09 21:21:49 +0200
commitb7cd80d155a8b3e1ebc5607b046544d45cf1921f (patch)
treea1b3bebda04bcea9fbf6d801ddeeaceaf9fcd81a /Dockerfile.production
parentac21ea756c18453954cdc87e9d33a9676ef48066 (diff)
made upload folder configurable
Diffstat (limited to '')
-rw-r--r--Dockerfile.production5
1 files changed, 4 insertions, 1 deletions
diff --git a/Dockerfile.production b/Dockerfile.production
index 025393f..35eb553 100644
--- a/Dockerfile.production
+++ b/Dockerfile.production
@@ -1,6 +1,6 @@
1# https://github.com/nginxinc/docker-nginx-unprivileged/blob/master/stable/buster/Dockerfile 1# https://github.com/nginxinc/docker-nginx-unprivileged/blob/master/stable/buster/Dockerfile
2 2
3From registry.0xacab.org/georg/mat2-ci-images:debian 3From debian:buster-slim
4 4
5LABEL maintainer="Mat-Web Co-Maintainer <jan.friedli@immerda.ch>" 5LABEL maintainer="Mat-Web Co-Maintainer <jan.friedli@immerda.ch>"
6 6
@@ -8,6 +8,8 @@ WORKDIR /var/www/mat2-web
8 8
9COPY . /var/www/mat2-web 9COPY . /var/www/mat2-web
10 10
11ENV MAT2_WEB_DOWNLOAD_FOLDER /app/upload
12
11RUN set -x \ 13RUN set -x \
12 && addgroup --system --gid 101 nginx \ 14 && addgroup --system --gid 101 nginx \
13 && adduser --system --disabled-login --ingroup nginx --no-create-home --home /nonexistent --gecos "nginx user" --shell /bin/false --uid 101 nginx \ 15 && adduser --system --disabled-login --ingroup nginx --no-create-home --home /nonexistent --gecos "nginx user" --shell /bin/false --uid 101 nginx \
@@ -16,6 +18,7 @@ RUN set -x \
16 ca-certificates \ 18 ca-certificates \
17 nginx \ 19 nginx \
18 systemd \ 20 systemd \
21 mat2 \
19 uwsgi \ 22 uwsgi \
20 uwsgi-plugin-python3 \ 23 uwsgi-plugin-python3 \
21 python3-pip \ 24 python3-pip \