Update Dockerfile to copy files from root directory and fix CMD command

This commit is contained in:
Mo Tarbin 2024-09-05 22:58:22 -04:00
parent 887759dd68
commit b7182a9598

View file

@ -6,8 +6,8 @@ WORKDIR /usr/src/app
COPY go.mod go.sum ./
RUN go mod download && go mod verify
COPY . .
COPY . /
RUN CGO_ENABLED=1 GOOS=linux go build -ldflags="-s -w " -buildvcs=false -o /donetick
ENV DT_ENV="selfhosted"
EXPOSE 2021
CMD ["donetick"]
CMD ["/donetick"]