Skip to content

Commit 0a345a8

Browse files
committed
fix: bump alpine and fix folder permissions on build
1 parent f2bc32f commit 0a345a8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,17 @@ RUN tar -xzvf helm-v3.13.2-linux-${TARGETARCH}.tar.gz
1919
RUN unzip reliza-cli-2024.07.5-linux-${TARGETARCH}.zip
2020
RUN mv kubectl-${TARGETARCH} kubectl
2121

22-
FROM alpine:3.20@sha256:b89d9c93e9ed3597455c90a0b88a8bbb5cb7188438f70953fede212a0c4394e0 as release-stage
22+
FROM alpine:3.22.1@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1 as release-stage
2323
ARG TARGETARCH
2424
ARG CI_ENV=noci
2525
ARG GIT_COMMIT=git_commit_undefined
2626
ARG GIT_BRANCH=git_branch_undefined
2727
ARG VERSION=not_versioned
2828
ENV ARGO_HELM_VERSION=5.51.6
29-
RUN mkdir -p /app/workspace && mkdir /app/tools
3029
RUN adduser -u 1000 -D apprunner && chown apprunner:apprunner -R /app
30+
USER apprunner
31+
RUN mkdir -p /app/workspace && mkdir /app/tools
32+
USER root
3133
COPY --from=build-stage --chown=apprunner:apprunner /build/reliza-cd /app/reliza-cd
3234
COPY --from=build-stage --chown=apprunner:apprunner /build/kubeseal /app/tools/kubeseal
3335
COPY --from=build-stage --chown=apprunner:apprunner /build/kubectl /app/tools/kubectl

0 commit comments

Comments
 (0)