We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d5dd097 + 97f22d6 commit 3983a4aCopy full SHA for 3983a4a
Dockerfile
@@ -32,6 +32,9 @@ RUN chown ehroes:ehroes /home/ehroes
32
RUN chmod a+x boot.sh
33
34
ENV FLASK_APP ehroes.py
35
+
36
+RUN usermod -u 1000 ehroes
37
+RUN usermod -G staff ehroes
38
USER ehroes
39
40
EXPOSE 5000
docker/run_sample.sh
@@ -16,5 +16,5 @@ docker run --name ehroes -d -p $APP_PORT:5000 -it -e SECRET_KEY=$SECRET_KEY \
16
-e DEFAULT_ADMIN_EMAIL=$DEFAULT_ADMIN_EMAIL \
17
-e DEFAULT_ADMIN_PASSWORD=$DEFAULT_ADMIN_PASSWORD \
18
-e ADMINS_EMAIL=$ADMINS_EMAIL \
19
- --mount 'type=volume,src=dataehroes,dst=/home/ehroes/data' \
+ -v dataehroes:/home/ehroes/data \
20
--restart unless-stopped ehroes:latest
0 commit comments