4 Commits

Author SHA1 Message Date
4d87ba71b5 add volume 2022-07-27 14:32:11 +02:00
89cdaafb45 one line 2022-07-20 17:43:08 +02:00
0764e7e029 change ssh config 2022-07-20 17:37:02 +02:00
5b6c6fa7ca fix missing start script 2022-07-20 16:19:17 +02:00
2 changed files with 9 additions and 4 deletions

View File

@ -6,11 +6,16 @@ RUN \
apt update && \
apt install -y cron && \
apt install -y openssh-server && \
apt install -y curl && \
mkdir -p ${APP_DIR} && \
useradd -d ${APP_DIR} -u 1000 user
useradd -d ${APP_DIR} -u 1000 user && \
mkdir -p ${APP_DIR}/.ssh && \
curl https://home.hottis.de/mysshkeys.pub > ${APP_DIR}/.ssh/authorized_keys
COPY crontab /etc/
COPY testscript.sh ${APP_DIR}/
COPY start.sh ${APP_DIR}/
COPY sshd_config /etc/ssh
RUN \
@ -19,11 +24,11 @@ RUN \
EXPOSE 2222
VOLUME /opt/data
# USER 1000:1000
WORKDIR ${APP_DIR}
CMD [ "/opt/app/start.sh" ]
# CMD [ "/usr/sbin/cron", "-f" ]

View File

@ -6,7 +6,7 @@ Ciphers aes128-cbc,3des-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr
MACs hmac-sha1,hmac-sha1-96
StrictModes yes
SyslogFacility DAEMON
PasswordAuthentication yes
PasswordAuthentication no
PermitEmptyPasswords no
PermitRootLogin yes
PermitRootLogin no
Subsystem sftp internal-sftp