From 75bea720e59db35d2ec3f44d8a30288cb922cd02 Mon Sep 17 00:00:00 2001 From: Carlos Mogas da Silva Date: Sun, 28 Feb 2021 17:11:26 +0000 Subject: [PATCH] Split install and configuration --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4aceaac..e810ce8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,9 +3,10 @@ FROM debian:stable ENV DATADIR=/usr/local/apache2/htdocs AUTHORIZED_KEYS_FILE=/authorized_keys USERID=33 GROUPID=33 OWNER=data -RUN apt-get update \ - && apt-get install -y openssh-server \ - && rm -f /etc/ssh/ssh_host_* \ +RUN apt update \ + && apt install -y openssh-server + +RUN rm -f /etc/ssh/ssh_host_* \ && groupadd --non-unique --gid $GROUPID data \ && useradd --non-unique --uid $USERID --gid $GROUPID --no-create-home --home-dir $DATADIR $OWNER \ && mkdir -p "$DATADIR" \