All configuration via .env file. (This replaces the nopaque.env file)

This commit is contained in:
Patrick Jentsch
2020-06-09 12:46:08 +02:00
parent f32c6e9faa
commit 59003593b6
8 changed files with 89 additions and 109 deletions

View File

@ -4,8 +4,8 @@ FROM python:3.6-slim-stretch
LABEL maintainer="inf_sfb1288@lists.uni-bielefeld.de"
ARG uid=1000
ARG gid=1000
ARG UID
ARG GID
ENV FLASK_APP=nopaque.py
ENV LANG=C.UTF-8
@ -21,8 +21,8 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*
RUN groupadd --gid "${gid}" --system nopaque \
&& useradd --create-home --gid "${gid}" --no-log-init --system --uid "${uid}" nopaque
RUN groupadd --gid ${GID} --system nopaque \
&& useradd --create-home --gid ${GID} --no-log-init --system --uid ${UID} nopaque
USER nopaque
WORKDIR /home/nopaque