From a66d7b9be92e78c5af70bff4df2fa10fe48aa826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Wed, 20 Apr 2022 02:41:57 +0200 Subject: [PATCH] Add Dockerfile --- Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b966287 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM golang:alpine as builder +WORKDIR /app +COPY go.mod . +COPY go.sum . +RUN go mod download +COPY . . +RUN go build -o minipaste minipaste.go + +FROM alpine:latest +COPY --from=builder /app/minipaste /usr/bin/minipaste +CMD ["/usr/bin/minipaste"] \ No newline at end of file