Skip to content

Commit

Permalink
Dockerfile initial version.
Browse files Browse the repository at this point in the history
  • Loading branch information
pataquets committed Oct 8, 2024
1 parent 3a8df92 commit d119b71
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
./Dockerfile
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## -*- dockerfile-image-name: "logdy-core" -*-
FROM golang:1

WORKDIR /go/src/logdy-core/
COPY ./ /go/src/logdy-core/

RUN \
--mount=type=cache,mode=0755,target=/root/.cache/go-build/ \
--mount=type=cache,mode=0755,target=/go/pkg/mod/cache/ \
go build -x -v \
&& go install -x -v \
&& go clean -v

ENTRYPOINT [ "/go/bin/logdy-core", "--ui-ip", "0.0.0.0" ]
CMD [ "stdin" ]

0 comments on commit d119b71

Please sign in to comment.