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