Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
amirhnajafiz committed Nov 6, 2023
1 parent e6d88b0 commit b690301
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ RUN go mod download

COPY . .

RUN go build -o main
RUN CGO_ENABLED=0 GO111MODULE=on go build -o /main

FROM scratch

WORKDIR /app

COPY --from=builder ./main .
COPY --from=builder main .

CMD ./main

0 comments on commit b690301

Please sign in to comment.