Skip to content

Commit

Permalink
update correct dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvatt committed Jan 8, 2025
1 parent f763c31 commit ccdf5af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Dockerfile-ci
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ FROM busybox:1.37.0 as assets
RUN addgroup -g 1001 knorten && \
adduser -u 1001 -G knorten \
-h /home/knorten -D knorten && \
mkdir -p /home/knorten/.config && \
mkdir -p /home/knorten/.config/helm && \
chown -R knorten:knorten /home/knorten

COPY /knorten /knorten
RUN chown knorten:knorten /knorten
RUN chmod +x /knorten

FROM gcr.io/distroless/static-debian11
FROM golang:1.23-alpine

COPY --chown=knorten:knorten --from=assets /etc/passwd /etc/passwd
COPY --chown=knorten:knorten --from=assets /home/knorten /home/knorten
COPY --chown=knorten:knorten --from=assets /home/knorten/.config /home/knorten/.config
COPY --chown=knorten:knorten --from=assets /home/knorten/.config/helm /home/knorten/.config/helm
COPY --chown=knorten:knorten --from=assets /knorten /home/knorten/knorten

COPY --chown=knorten:knorten /assets /home/knorten/assets
Expand Down
2 changes: 0 additions & 2 deletions k8s/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ spec:
env:
- name: "GIN_MODE"
value: "release"
- name: "HELM_CONFIG_HOME"
value: "/home/knorten/.config/helm"
- name: KNORTEN_HELM_AIRFLOW_CHART_VERSION
valueFrom:
configMapKeyRef:
Expand Down

0 comments on commit ccdf5af

Please sign in to comment.