aboutsummaryrefslogblamecommitdiffstats
path: root/Dockerfile
blob: 3508e96ace8d3967c57178fa468e07200393d899 (plain) (tree)
1
2
3
4
5
6
7
8
9







                                    
        


                                                                                     
                
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"]