Remove /root/.ssh before symlinking

Ensure the symlinks are created correctly whether or not /root/.ssh
already exists.
This commit is contained in:
Donal McBreen
2023-06-15 12:02:56 +01:00
parent 80a4ca4f8a
commit 95d6ee5031

View File

@@ -17,6 +17,7 @@ RUN apt-get update --fix-missing && apt-get install -y docker-ce docker-ce-cli c
COPY *.sh .
COPY app/ .
RUN rm -rf /root/.ssh
RUN ln -s /shared/ssh /root/.ssh
RUN mkdir -p /etc/docker/certs.d/registry:4443 && ln -s /shared/certs/domain.crt /etc/docker/certs.d/registry:4443/ca.crt