Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvatt committed Jan 8, 2025
1 parent cfe26fd commit 81fc1e5
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,10 @@ RUN go build -o knorten .

RUN adduser -u 1001 knorten -D && \
mkdir -p /home/knorten/.config/helm/registry && \
cp /src/knorten /home/knorten/knorten && \
cp /src/assets /home/knorten/assets && \
cp /src/templates /home/knorten/templates && \
chown -R knorten:knorten /home/knorten

FROM golang:1.23-alpine

COPY --chown=knorten:knorten --from=builder /etc/passwd /etc/passwd
COPY --chown=knorten:knorten --from=builder /home/knorten /home/knorten
COPY --chown=knorten:knorten --from=builder /home/knorten/.config/helm/registry /home/knorten/.config/helm/registry
COPY --chown=knorten:knorten --from=builder /src/knorten /home/knorten/knorten
COPY --chown=knorten:knorten --from=builder /src/assets /home/knorten/assets
COPY --chown=knorten:knorten --from=builder /src/templates /home/knorten/templates

WORKDIR /home/knorten
CMD ["/home/knorten/knorten", "--config", "/home/knorten/config.yaml"]

0 comments on commit 81fc1e5

Please sign in to comment.