make Dockerfile add a random value and put it on filesystem to be picked up in main.py -> for app.config['SECRET_KEY]
This commit is contained in:
@@ -23,6 +23,8 @@ RUN apt-get update && \
|
||||
|
||||
RUN pip3 install --upgrade pip
|
||||
RUN pip3 install -U -r requirements.txt
|
||||
RUN cat /dev/urandom | head -c 50 | md5sum | head -c 32 > /code/.sk
|
||||
RUN chmod 600 .sk
|
||||
EXPOSE 80
|
||||
# NOTE, wrapper.sh will use sudo to work in PROD and DEV AS the correct
|
||||
# BOOK_UID/BOOK_GID as pybook user and group
|
||||
|
||||
Reference in New Issue
Block a user