diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-07-29 00:44:51 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-07-29 00:45:16 +0900 |
| commit | 514ee5a55bb810ea2ac56cdd125a73651bdc167d (patch) | |
| tree | e36a4f721daff209d3d6d1c20bb71a018c4bf16a /backend | |
| parent | 22ddf340f0b0c8d0cd04c34d9fa1481a1fbf422f (diff) | |
| download | iosdc-japan-2024-albatross-514ee5a55bb810ea2ac56cdd125a73651bdc167d.tar.gz iosdc-japan-2024-albatross-514ee5a55bb810ea2ac56cdd125a73651bdc167d.tar.zst iosdc-japan-2024-albatross-514ee5a55bb810ea2ac56cdd125a73651bdc167d.zip | |
feat(backend): improve dockerfile cacheability
Diffstat (limited to 'backend')
| -rw-r--r-- | backend/Dockerfile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/Dockerfile b/backend/Dockerfile index 1d1523d..acf7a68 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,6 +1,9 @@ FROM golang:1.22.3 AS builder WORKDIR /build +COPY go.mod go.sum ./ +RUN go mod download + COPY . /build RUN go build -o /build/server . |
