Entrypoint permissions can be set on COPY (#211)

This commit is contained in:
Frederik Ring
2023-04-28 20:06:57 +02:00
committed by GitHub
parent 5b8a484d80
commit d4c5f65f31
2 changed files with 11 additions and 3 deletions

View File

@@ -16,8 +16,6 @@ WORKDIR /root
RUN apk add --no-cache ca-certificates
COPY --from=builder /app/cmd/backup/backup /usr/bin/backup
COPY ./entrypoint.sh /root/
RUN chmod +x entrypoint.sh
COPY --chmod=755 ./entrypoint.sh /root/
ENTRYPOINT ["/root/entrypoint.sh"]