Skip to content

Commit

Permalink
chore: simplify alpine container build
Browse files Browse the repository at this point in the history
  • Loading branch information
06kellyjac committed Aug 17, 2024
1 parent 22a9deb commit 9567645
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,11 @@ RUN addgroup -S kubesec \

WORKDIR /home/kubesec

COPY --from=builder /kubesec/kubesec /bin/kubesec
COPY --chown=kubesec ./templates/ /templates
# This directory must follow the same structure ($SCHEMA_PATH) as the upstream
# schema location: github.com/yannh/kubernetes-json-schema
COPY --from=downloader /schemas /schemas
COPY --from=builder /kubesec/kubesec /bin/kubesec
COPY ./templates/ /templates

RUN chown -R kubesec:kubesec ./ /schemas /templates
COPY --from=downloader --chown=kubesec /schemas /schemas

USER kubesec

Expand Down

0 comments on commit 9567645

Please sign in to comment.