summaryrefslogtreecommitdiff
path: root/docker/Dockerfile
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2021-07-04 17:20:50 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2021-07-04 17:20:50 +0100
commitd95e8ce75cc193181fd8cf9272269fbfff911f66 (patch)
treef25e86b4768050d39b932bfb9e42970cfc5936e4 /docker/Dockerfile
parent03f9f907ed21a9c56b229668b28571969d988a8c (diff)
Simplify project structure
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile14
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"]