12 lines
333 B
Docker
12 lines
333 B
Docker
FROM ubuntu:22.04
|
|
|
|
RUN apt-get update && apt-get install -y openssh-server
|
|
|
|
RUN mkdir /var/run/sshd /root/.ssh
|
|
COPY sshd_config /etc/ssh/sshd_config
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
COPY authorized_keys /root/.ssh/authorized_keys
|
|
RUN chmod +x /entrypoint.sh && chmod 600 /root/.ssh/authorized_keys
|
|
|
|
EXPOSE 22
|
|
CMD ["/entrypoint.sh"]
|