Skip to content

Commit

Permalink
update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Fajar-Islami committed Oct 16, 2024
1 parent a02f052 commit 6dcb116
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM golang:1.22.4-alpine AS build
LABEL stage=dockerbuilder

WORKDIR /app
# Copy go.mod and go.sum first to take advantage of Docker caching.
COPY go.mod go.sum ./

Expand All @@ -14,6 +14,7 @@ COPY . .
RUN go build -o fajar-discord-bot

FROM alpine:latest
COPY --from=build /fajar-discord-bot /fajar-discord-bot

COPY --from=build /app/fajar-discord-bot /fajar-discord-bot

ENTRYPOINT [ "/fajar-discord-bot" ]

0 comments on commit 6dcb116

Please sign in to comment.