aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-09-05 22:58:22 -0400
committerLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-09-06 01:13:29 -0400
commitb7182a95983927b11c823f13ed816af1950a1fc1 (patch)
tree9aac8ad650a0f2880e1e27d4343bee7bb7d47944
parent887759dd682da63eaa585edd99a8dad659d37357 (diff)
downloaddonetick-b7182a95983927b11c823f13ed816af1950a1fc1.tar.gz
donetick-b7182a95983927b11c823f13ed816af1950a1fc1.tar.bz2
donetick-b7182a95983927b11c823f13ed816af1950a1fc1.zip
Update Dockerfile to copy files from root directory and fix CMD command
Diffstat (limited to '')
-rw-r--r--Dockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index a3a6e37..f436af9 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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"] \ No newline at end of file
+CMD ["/donetick"] \ No newline at end of file