mirror of
https://github.com/atmoz/sftp.git
synced 2025-03-09 15:16:00 -04:00
Simplified Dockerfile
This commit is contained in:
parent
927da83da4
commit
0442105269
1 changed files with 6 additions and 7 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue