-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7f0b678
commit 1364850
Showing
1 changed file
with
4 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
FROM golang:1.23.0 as builder | ||
WORKDIR /build | ||
COPY . . | ||
RUN go env -w GO111MODULE=on && \ | ||
go env -w GOPROXY=https://goproxy.io,direct | ||
COPY . . | ||
RUN go env -w GO111MODULE=on | ||
|
||
RUN go mod download | ||
|
||
RUN CGO_ENABLED=1 GOOS=linux go build -ldflags=-checklinkname=0 -o main main.go | ||
RUN CGO_ENABLED=1 GOOS=linux go build -o main main.go | ||
|
||
FROM gcr.io/distroless/base-debian12 | ||
|
||
COPY --from=builder /build/main . | ||
ADD store/migrations /migrations | ||
EXPOSE 8080 | ||
|
||
ENTRYPOINT [ "./main","run","--config","/etc/app/config.yaml"] | ||
ENTRYPOINT [ "./main","run","--config","/etc/app/config.yaml"] |