Matches devops-lib#4b90815 — this repo has its own Dockerfile, so it never went through the fallback templates that change updated. Same base-images/golang:1.22-alpine and base-images/alpine:3.20 already mirrored there.
12 lines
269 B
Docker
12 lines
269 B
Docker
FROM harbor.192.168.1.7.nip.io/base-images/golang:1.22-alpine AS build
|
|
WORKDIR /src
|
|
COPY go.mod ./
|
|
COPY main.go ./
|
|
RUN CGO_ENABLED=0 go build -o /app .
|
|
|
|
FROM harbor.192.168.1.7.nip.io/base-images/alpine:3.20
|
|
COPY --from=build /app /app
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["/app"]
|
|
|