Skip to content

Commit

Permalink
adjust dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima committed Nov 3, 2023
1 parent 9e562c6 commit c1a6512
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM golang:latest

WORKDIR /root

# pre-copy/cache go.mod for pre-downloading dependencies and only redownloading them in subsequent builds if they change
COPY . .
RUN go mod tidy && go build -v -o app
ENTRYPOINT app
ENTRYPOINT /root/app

0 comments on commit c1a6512

Please sign in to comment.