Skip to content

Commit

Permalink
fix: Try Again Docker Scratch
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammad Ilham <muhd.iiilham@gmail.com>
  • Loading branch information
mhdiiilham committed Jan 24, 2023
1 parent 0667ff6 commit 60eae1f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ COPY . /btc-billionaire/
RUN go mod tidy
RUN GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o btc-billionaire cmd/main.go

FROM alpine
RUN mkdir /server
FROM scratch
WORKDIR /server
COPY --from=builder /btc-billionaire/btc-billionaire /server/btc-billionaire
COPY --from=builder /btc-billionaire/app.env /server/app.env
Expand Down

0 comments on commit 60eae1f

Please sign in to comment.