From 0442105269ead6b1795c2f76f334e7d09edb40aa Mon Sep 17 00:00:00 2001 From: vienleidl <97711647+vienleidl@users.noreply.github.com> Date: Wed, 26 Apr 2023 07:56:07 +0700 Subject: [PATCH] Simplified Dockerfile --- Dockerfile-alpine | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Dockerfile-alpine b/Dockerfile-alpine index f4d8c52..3f6d3ea 100644 --- a/Dockerfile-alpine +++ b/Dockerfile-alpine @@ -16,15 +16,14 @@ COPY files/sshd_config /etc/ssh/sshd_config COPY files/create-sftp-user /usr/local/bin/ COPY files/entrypoint / -RUN dos2unix /etc/ssh/sshd_config -RUN dos2unix /usr/local/bin/create-sftp-user -RUN dos2unix /entrypoint +RUN dos2unix /etc/ssh/sshd_config && \ + dos2unix /usr/local/bin/create-sftp-user && \ + dos2unix /entrypoint -RUN chmod +x /entrypoint -RUN chmod +x /usr/local/bin/create-sftp-user +RUN chmod +x /entrypoint && \ + chmod +x /usr/local/bin/create-sftp-user -RUN apk del dos2unix --force-broken-world --progress && \ - rm -rf /var/cache/apk/* +RUN apk del dos2unix --force-broken-world --progress EXPOSE 22