fix: copy before changing perms

This commit is contained in:
Erica Marigold 2023-07-24 20:51:50 +05:30 committed by GitHub
parent f9df51da18
commit f98c3d09c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,13 +14,13 @@ RUN useradd -m builder && \
RUN mkdir -p /home/builder/.ssh && \
touch /home/builder/.ssh/known_hosts
COPY . /home/builder/packaging_scripts
RUN chown -R builder:builder /home/builder/.ssh && \
chmod 600 /home/builder/.ssh/* -R && \
chown -R builder:builder /home/builder/packaging_scripts && \
chmod +x /home/builder/packaging_scripts/*.sh
COPY . /home/builder/packaging_scripts
USER builder
WORKDIR /home/builder/packaging_scripts