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 4b5a0be commit a02f052
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22.4-alpine As build
FROM golang:1.22.4-alpine AS build
LABEL stage=dockerbuilder

# Copy go.mod and go.sum first to take advantage of Docker caching.
Expand All @@ -14,7 +14,6 @@ COPY . .
RUN go build -o fajar-discord-bot

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

ENTRYPOINT [ "/app/fajar-discord-bot" ]
ENTRYPOINT [ "/fajar-discord-bot" ]

0 comments on commit a02f052

Please sign in to comment.