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 07f2196 commit 4b5a0be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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,7 @@ COPY . .
RUN go build -o fajar-discord-bot

FROM alpine:latest

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

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

0 comments on commit 4b5a0be

Please sign in to comment.