Update Dockerfile to copy files from root directory and fix CMD command
This commit is contained in:
parent
887759dd68
commit
b7182a9598
1 changed files with 2 additions and 2 deletions
|
@ -6,8 +6,8 @@ WORKDIR /usr/src/app
|
||||||
COPY go.mod go.sum ./
|
COPY go.mod go.sum ./
|
||||||
RUN go mod download && go mod verify
|
RUN go mod download && go mod verify
|
||||||
|
|
||||||
COPY . .
|
COPY . /
|
||||||
RUN CGO_ENABLED=1 GOOS=linux go build -ldflags="-s -w " -buildvcs=false -o /donetick
|
RUN CGO_ENABLED=1 GOOS=linux go build -ldflags="-s -w " -buildvcs=false -o /donetick
|
||||||
ENV DT_ENV="selfhosted"
|
ENV DT_ENV="selfhosted"
|
||||||
EXPOSE 2021
|
EXPOSE 2021
|
||||||
CMD ["donetick"]
|
CMD ["/donetick"]
|
Loading…
Add table
Reference in a new issue