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