create build-time random string for SECRET_KEY for prod

This commit is contained in:
2023-01-15 23:17:16 +11:00
parent 05c08938d8
commit dc11a0697b
2 changed files with 12 additions and 3 deletions

View File

@@ -20,6 +20,8 @@ RUN pip3 install --upgrade pillow --user
EXPOSE 443
EXPOSE 55432
COPY . .
RUN echo $RANDOM | md5sum | head -c 30 > /code/.sk
RUN chmod 600 .sk
RUN date > internal/build-date.txt
RUN git log -n 15 > internal/git-log.txt
RUN ln -s /code/TODO /code/internal/TODO