diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2021-03-14 15:44:47 +0000 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2021-03-14 15:44:47 +0000 |
| commit | 488469289fbad0ce291411733dcd08e7d91cc582 (patch) | |
| tree | d8a2b42f61cf7150dec4f3aaa66b1a11be72ec31 | |
| parent | ce3182d4c3f5fb723a16bece3157a5058b1236f9 (diff) | |
Set CGO_ENABLED=0 before building in Docker
Also, bump the version number of the builder image.
| -rw-r--r-- | deployments/docker/Dockerfile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/deployments/docker/Dockerfile b/deployments/docker/Dockerfile index 4bc5570..6a04a6c 100644 --- a/deployments/docker/Dockerfile +++ b/deployments/docker/Dockerfile @@ -1,13 +1,13 @@ # SPDX-FileCopyrightText: © 2020 Grégoire Duchêne <gduchene@awhk.org> # SPDX-License-Identifier: ISC -FROM golang:1.15 +FROM golang:1.16 WORKDIR /root COPY . ./ -RUN go build ./cmd/fwdsms +RUN CGO_ENABLED=0 go build ./cmd/fwdsms FROM scratch -COPY --from=0 /root/fwdsms /fwdsms +COPY --from=0 /root/fwdsms /usr/bin/fwdsms EXPOSE 8080 -ENTRYPOINT ["/fwdsms"] +ENTRYPOINT ["/usr/bin/fwdsms"] |
