1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/openssh/Dockerfile

22 lines
348 B
Docker
Raw Normal View History

2016-07-01 16:15:28 +02:00
#
# Dockerfile for openssh
#
FROM alpine
MAINTAINER kev <noreply@easypi.info>
RUN set -xe \
&& apk add --no-cache openssh \
&& mkdir -p 700 /root/.ssh \
&& mv /etc/ssh /root/.ssh/ssh \
&& ln -s /root/.ssh/ssh /etc/ssh
COPY docker-entrypoint.sh /entrypoint.sh
WORKDIR /root
VOLUME /root
EXPOSE 22
ENTRYPOINT ["/entrypoint.sh"]