Skip to content

Commit

Permalink
better ig
Browse files Browse the repository at this point in the history
  • Loading branch information
annihilatorrrr authored Dec 15, 2023
1 parent 670ef71 commit 76ac60d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM golang:1.21 AS builder
RUN apt-get update && apt-get upgrade -y && apt-get install build-essential -y
FROM golang:1.21-alpine3.18 as builder
RUN apk update && apk upgrade --available && sync
WORKDIR /app
COPY . .
RUN CGO_ENABLED=0 go build -o /app/fsb -ldflags="-w -s" ./cmd/fsb

FROM scratch
COPY --from=builder /app/fsb /app/fsb
EXPOSE ${PORT}
ENTRYPOINT ["/app/fsb", "run"]
ENTRYPOINT ["/app/fsb", "run"]

0 comments on commit 76ac60d

Please sign in to comment.