Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
89cdaafb45 | |||
0764e7e029 |
@ -6,8 +6,12 @@ RUN \
|
|||||||
apt update && \
|
apt update && \
|
||||||
apt install -y cron && \
|
apt install -y cron && \
|
||||||
apt install -y openssh-server && \
|
apt install -y openssh-server && \
|
||||||
|
apt install -y curl && \
|
||||||
mkdir -p ${APP_DIR} && \
|
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 crontab /etc/
|
||||||
COPY testscript.sh ${APP_DIR}/
|
COPY testscript.sh ${APP_DIR}/
|
||||||
@ -25,6 +29,5 @@ EXPOSE 2222
|
|||||||
WORKDIR ${APP_DIR}
|
WORKDIR ${APP_DIR}
|
||||||
|
|
||||||
CMD [ "/opt/app/start.sh" ]
|
CMD [ "/opt/app/start.sh" ]
|
||||||
# CMD [ "/usr/sbin/cron", "-f" ]
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ Ciphers aes128-cbc,3des-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr
|
|||||||
MACs hmac-sha1,hmac-sha1-96
|
MACs hmac-sha1,hmac-sha1-96
|
||||||
StrictModes yes
|
StrictModes yes
|
||||||
SyslogFacility DAEMON
|
SyslogFacility DAEMON
|
||||||
PasswordAuthentication yes
|
PasswordAuthentication no
|
||||||
PermitEmptyPasswords no
|
PermitEmptyPasswords no
|
||||||
PermitRootLogin yes
|
PermitRootLogin no
|
||||||
Subsystem sftp internal-sftp
|
Subsystem sftp internal-sftp
|
||||||
|
Reference in New Issue
Block a user