donetick/Dockerfile

13 lines
235 B
Docker
Raw Normal View History

2024-07-01 02:41:41 +01:00
FROM golang:1.22
WORKDIR /usr/src/app
COPY go.mod go.sum ./
RUN go mod download && go mod verify
COPY . .
RUN CGO_ENABLED=1 GOOS=linux go build -ldflags="-s -w " -buildvcs=false -o /donetick-core
EXPOSE 8080
CMD ["donetick-core"]