0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2025-01-05 13:28:47 -05:00

Simplified Dockerfile

This commit is contained in:
vienleidl 2023-04-26 07:56:07 +07:00 committed by GitHub
parent 927da83da4
commit 0442105269
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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