feat: Add logging directory and initialize app log file in Dockerfile
This commit is contained in:
@@ -53,6 +53,11 @@ RUN sh -c "pyinstaller --name ${TARGET} --optimize 2 --onefile --windowed --hidd
|
||||
RUN chown -R ${UID}:${GUID} /home/docker_user/
|
||||
RUN chmod -R 777 /home/docker_user/${TARGET}
|
||||
|
||||
RUN mkdir -p /app/logs && \
|
||||
touch /app/logs/app.log && \
|
||||
chown -R ${UID}:${GUID} /app/logs && \
|
||||
chmod 666 /app/logs/app.log
|
||||
|
||||
# Set environment variables for X11 forwarding
|
||||
ENV DISPLAY=:0
|
||||
ENV XAUTHORITY=/tmp/.docker.xauth
|
||||
|
||||
Reference in New Issue
Block a user