Merge pull request #111 from PeterDaveHello/SimplifyDockerfile

Simplify .ssh directory setup process in Dockerfile
This commit is contained in:
sickcodes 2020-12-16 04:59:02 +00:00 committed by GitHub
commit 65ac86bec7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,9 +76,7 @@ RUN pacman -Syu --noconfirm \
&& chown arch:arch /home/arch && chown arch:arch /home/arch
# allow ssh to container # allow ssh to container
WORKDIR /root RUN mkdir -m 700 /root/.ssh
RUN mkdir .ssh \
&& chmod 700 .ssh
WORKDIR /root/.ssh WORKDIR /root/.ssh
RUN touch authorized_keys \ RUN touch authorized_keys \