aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..3c568c0
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,9 @@
+FROM golang:1.18.9 as builder
+WORKDIR /app
+COPY . .
+RUN go test ./... &&\
+ CGO_ENABLED=0 go build .
+
+FROM scratch
+COPY --from=builder /app/hydra-dragonfire /bin/hydra-dragonfire
+ENTRYPOINT ["/bin/hydra-dragonfire"]