Skip to content

Commit

Permalink
change: add empty /tmp to binary-only image to make it work with conf…
Browse files Browse the repository at this point in the history
…ig files
  • Loading branch information
iwilltry42 committed Aug 2, 2023
1 parent aee40d9 commit 85110ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ ARG DOCKER_VERSION=23.0.1
FROM golang:1.20 as builder
ARG GIT_TAG_OVERRIDE
WORKDIR /app
RUN mkdir /tmp/empty
COPY . .
RUN make build -e GIT_TAG_OVERRIDE=${GIT_TAG_OVERRIDE} && bin/k3d version

Expand Down Expand Up @@ -40,5 +41,7 @@ COPY --from=builder /app/bin/k3d /bin/k3d
# -> only the k3d binary.. nothing else #
#########################################
FROM scratch as binary-only
# empty tmp directory to avoid errors when transforming the config file
COPY --from=builder /tmp/empty /tmp
COPY --from=builder /app/bin/k3d /bin/k3d
ENTRYPOINT ["/bin/k3d"]

0 comments on commit 85110ae

Please sign in to comment.