aboutsummaryrefslogtreecommitdiff
path: root/deployments/docker/Dockerfile
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2020-11-29 13:43:55 +0000
committerGrégoire Duchêne <gduchene@awhk.org>2020-11-29 18:00:37 +0000
commit5277c7123524f5cccbf5ce62f5aa93b4bed68b10 (patch)
tree939ede863a41db0ffd2080f80600197458f8b7dc /deployments/docker/Dockerfile
parenta5776d48925b1429b4704c11251220ab7143850f (diff)
First draft of the service
This version is pretty basic but it works.
Diffstat (limited to 'deployments/docker/Dockerfile')
-rw-r--r--deployments/docker/Dockerfile13
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"]