aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: f436af96f4d841ea975bee14a4bab7a635a7bee8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
ENV DT_ENV="selfhosted"
EXPOSE 2021 
CMD ["/donetick"]