minipaste/Dockerfile

11 lines
239 B
Docker
Raw Normal View History

2022-04-20 00:41:57 +00:00
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"]