aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 7b58a30b0162c4523c2be0cb46823764eb46368e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
FROM golang:1.17-alpine as builder
WORKDIR /usr/src
COPY go.mod .
COPY go.sum .
RUN GOPROXY=${PROXY} go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o pomodoro .

FROM alpine
WORKDIR /usr/app
COPY --from=builder /usr/src/pomodoro .
CMD ["./pomodoro"]