11 lines
239 B
Docker
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"] |