diff --git a/.dockerignore b/.dockerignore index 11064df5..518de1be 100644 --- a/.dockerignore +++ b/.dockerignore @@ -8,6 +8,6 @@ !.flaskenv !boot.sh !config.py -!docker-entrypoint.sh +!docker-nopaque-entrypoint.sh !nopaque.py !requirements.txt diff --git a/Dockerfile b/Dockerfile index 8cb662e9..1342134f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,9 +17,6 @@ RUN apt-get update \ && rm --recursive /var/lib/apt/lists/* -COPY docker-entrypoint.sh /usr/local/bin/ - - RUN useradd --create-home --no-log-init nopaque \ && groupadd docker \ && usermod --append --groups docker nopaque @@ -47,7 +44,10 @@ RUN python3 -m pip install --requirement requirements.txt \ USER root +COPY docker-nopaque-entrypoint.sh /usr/local/bin/ + + EXPOSE 5000 -ENTRYPOINT ["docker-entrypoint.sh"] +ENTRYPOINT ["docker-nopaque-entrypoint.sh"] diff --git a/docker-entrypoint.sh b/docker-nopaque-entrypoint.sh similarity index 100% rename from docker-entrypoint.sh rename to docker-nopaque-entrypoint.sh