Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored Jan 17, 2023
1 parent f022461 commit a5b7193
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@ RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
CGO_ENABLED=0 go build -installsuffix cgo -ldflags "-X main.version=1" -o main .
#
#FROM golang:1.19-bullseye
#
FROM golang:1.19-bullseye
#
COPY --from=builder /app/main /app/main
RUN chmod -R 755 /app/main
WORKDIR /app
#COPY --from=builder /app/main /app/main
#RUN chmod -R 755 /app/main
#WORKDIR /app
#
#CMD [ "./main" ]
ENTRYPOINT ["./main"]
Expand Down

0 comments on commit a5b7193

Please sign in to comment.