diff options
author | Julien Dessaux | 2024-09-20 22:53:48 +0200 |
---|---|---|
committer | Julien Dessaux | 2025-02-09 10:09:22 +0100 |
commit | de7ba3439bb0721f5395a6b97f22a1b68eea6ea8 (patch) | |
tree | cedfcecbccbc52a00e17de1bfda60b517050d543 /Dockerfile | |
parent | chore(tooling): add a Dockerfile along with some makefile container targets (diff) | |
download | ods-de7ba3439bb0721f5395a6b97f22a1b68eea6ea8.tar.gz ods-de7ba3439bb0721f5395a6b97f22a1b68eea6ea8.tar.bz2 ods-de7ba3439bb0721f5395a6b97f22a1b68eea6ea8.zip |
chore(tooling): Fix container build layers caching
Diffstat (limited to '')
-rw-r--r-- | Dockerfile | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -3,11 +3,8 @@ FROM docker.io/library/golang:1.23-alpine WORKDIR /usr/src/app -COPY go.mod go.sum ./ -RUN go mod download && go mod verify - -COPY . . -RUN CGO_ENABLED=0 go build ./... +COPY checksums / +RUN CGO_ENABLED=0 go build -o /usr/local/bin/ods ./ ##### Run ###################################################################### FROM alpine:3.20 @@ -16,6 +13,6 @@ ENV LANG en_US.utf8 RUN apk upgrade --no-cache -COPY --from=0 /usr/src/app/ods /usr/local/bin/ +COPY --from=0 /usr/local/bin/ods /usr/local/bin/ ENTRYPOINT ["/usr/local/bin/ods"] |