From 5277c7123524f5cccbf5ce62f5aa93b4bed68b10 Mon Sep 17 00:00:00 2001 From: Grégoire Duchêne Date: Sun, 29 Nov 2020 13:43:55 +0000 Subject: First draft of the service This version is pretty basic but it works. --- deployments/docker/Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 deployments/docker/Dockerfile (limited to 'deployments/docker') 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 +# 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"] -- cgit v1.2.3-70-g09d2