minipaste/Dockerfile
2022-04-20 02:41:57 +02:00

11 lines
239 B
Docker

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"]