Update Dockerfile to copy files from root directory and fix CMD command
This commit is contained in:
parent
3868178675
commit
0b7ca8d908
1 changed files with 2 additions and 2 deletions
|
@ -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"]
|
Loading…
Add table
Reference in a new issue