mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-12 09:00:40 +00:00
Renaming: opaque->nopaque
This commit is contained in:
14
Dockerfile
14
Dockerfile
@ -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/"]
|
||||
|
Reference in New Issue
Block a user