diff options
Diffstat (limited to 'docker/Dockerfile')
| -rw-r--r-- | docker/Dockerfile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..fb5062d --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,14 @@ +# SPDX-FileCopyrightText: © 2020 Grégoire Duchêne <gduchene@awhk.org> +# SPDX-License-Identifier: ISC + +FROM golang:1.16 +WORKDIR /root +COPY . ./ +ENV CGO_ENABLED=0 +RUN go build + +FROM scratch +COPY --from=0 /root/fwdsms /usr/bin/fwdsms + +EXPOSE 8080 +ENTRYPOINT ["/usr/bin/fwdsms"] |
