From 1ca00145c6de5d9f40e6a9a0ffafb937aa95057e Mon Sep 17 00:00:00 2001 From: Jason Mulligan Date: Fri, 12 Jun 2026 08:38:16 -0400 Subject: [PATCH] feat: add log cache directory to Dockerfile --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d8ab9658..01f31227 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,7 @@ RUN apk update && \ apk add --no-cache python3 ruby curl bash jq unzip wget ca-certificates git file zip xz lz4 diffutils tree rsync openssh-server cronie && \ ssh-keygen -A && \ adduser -S -G node -h /home/madz -s /bin/sh madz && \ - mkdir -p /run/sshd /root/.cache /home/madz/.cache && \ + mkdir -p /run/sshd /root/.cache /home/madz/.cache/madz/logs && \ printf '%s\n' '#!/bin/sh' '[ -f /etc/profile.d/madz-env.sh ] && . /etc/profile.d/madz-env.sh' 'if [ -x "/app" ]; then' ' echo "Starting madz..."' ' cd /app && exec node --expose-gc index.js --mode interactive' 'fi' > /etc/profile && \ passwd -d madz && \ sed -i 's/^#*PermitEmptyPasswords.*/PermitEmptyPasswords yes/' /etc/ssh/sshd_config && \ @@ -43,7 +43,8 @@ COPY docker-entrypoint.sh /docker-entrypoint.sh RUN chmod +x /docker-entrypoint.sh RUN chown -R madz:node /app && \ - chmod -R g+rwX /app + chmod -R g+rwX /app && \ + chmod -R g+rwX /home/madz/.cache/madz/logs && \ ENTRYPOINT ["/docker-entrypoint.sh"] CMD ["sleep", "infinity"]