1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 11:58:47 +00:00
dockerfiles/openssh/Dockerfile

22 lines
347 B
Docker
Raw Normal View History

2016-07-01 14:15:28 +00:00
#
# Dockerfile for openssh
#
FROM alpine
2017-05-07 23:05:07 +00:00
MAINTAINER kev <noreply@easypi.pro>
2016-07-01 14:15:28 +00:00
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"]