Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand All @@ -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"]