From b17233f3068db8d7a1b17a7151ea65f6888887ca Mon Sep 17 00:00:00 2001 From: Adrian Dvergsdal Date: Sun, 31 Jul 2016 15:39:11 +0200 Subject: [PATCH] Switch to alpine:3.4 --- Dockerfile | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 478c439..622aca1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,22 +1,20 @@ -FROM debian:jessie +FROM alpine:3.4 MAINTAINER Adrian Dvergsdal [atmoz.net] # - Install packages +# - Fix default group (1000 does not exist) # - OpenSSH needs /var/run/sshd to run # - Remove generic host keys, entrypoint generates unique keys -RUN apt-get update && \ - apt-get -y install openssh-server && \ +RUN echo "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \ + apk add --no-cache bash shadow@testing openssh openssh-sftp-server && \ + sed -i 's/GROUP=1000/GROUP=100/' /etc/default/useradd && \ mkdir -p /var/run/sshd && \ - rm -f /etc/ssh/ssh_host_*key* && \ - rm -rf /var/lib/apt/lists/* - + rm -f /etc/ssh/ssh_host_*key* COPY sshd_config /etc/ssh/sshd_config COPY entrypoint / COPY README.md / -VOLUME /etc/ssh - EXPOSE 22 ENTRYPOINT ["/entrypoint"]