Renaming: opaque->nopaque

This commit is contained in:
Patrick Jentsch
2019-12-02 11:34:28 +01:00
parent da2f7f6c7d
commit f63a850175
16 changed files with 45 additions and 45 deletions

View File

@ -1,7 +1,7 @@
FROM python:3.6-slim-stretch
ENV FLASK_APP=opaque.py
ENV FLASK_APP=nopaque.py
RUN apt-get update \
@ -12,23 +12,23 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*
RUN groupadd --gid 1000 --system opaque \
&& useradd --create-home --gid opaque --no-log-init --system --uid 1000 opaque
USER opaque
WORKDIR /home/opaque
RUN groupadd --gid 1000 --system nopaque \
&& useradd --create-home --gid nopaque --no-log-init --system --uid 1000 nopaque
USER nopaque
WORKDIR /home/nopaque
COPY ["app", "app"]
COPY ["migrations", "migrations"]
COPY ["tests", "tests"]
COPY ["config.py", "opaque.py", "requirements.txt", "./"]
COPY ["config.py", "nopaque.py", "requirements.txt", "./"]
RUN python -m venv venv \
&& venv/bin/pip install --requirement requirements.txt \
&& mkdir logs
EXPOSE 5000
VOLUME ["/home/opaque/logs", "/home/opaque/migrations"]
VOLUME ["/home/nopaque/logs", "/home/nopaque/migrations"]
COPY ["docker-entrypoint.sh", "/usr/local/bin/"]