mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-14 10:00:40 +00:00
All configuration via .env file. (This replaces the nopaque.env file)
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user