0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2025-03-09 15:16:00 -04: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/create-sftp-user /usr/local/bin/
COPY files/entrypoint / COPY files/entrypoint /
RUN dos2unix /etc/ssh/sshd_config RUN dos2unix /etc/ssh/sshd_config && \
RUN dos2unix /usr/local/bin/create-sftp-user dos2unix /usr/local/bin/create-sftp-user && \
RUN dos2unix /entrypoint dos2unix /entrypoint
RUN chmod +x /entrypoint RUN chmod +x /entrypoint && \
RUN chmod +x /usr/local/bin/create-sftp-user chmod +x /usr/local/bin/create-sftp-user
RUN apk del dos2unix --force-broken-world --progress && \ RUN apk del dos2unix --force-broken-world --progress
rm -rf /var/cache/apk/*
EXPOSE 22 EXPOSE 22