feat: Add logging directory and initialize app log file in Dockerfile

This commit is contained in:
William Valentin
2025-07-30 11:21:44 -07:00
parent 85e30671d4
commit 7380d9a8a9

View File

@@ -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