Pull base images from Harbor, not Docker Hub
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.
This commit is contained in:
+2
-2
@@ -1,10 +1,10 @@
|
|||||||
FROM golang:1.22-alpine AS build
|
FROM harbor.192.168.1.7.nip.io/base-images/golang:1.22-alpine AS build
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY go.mod ./
|
COPY go.mod ./
|
||||||
COPY main.go ./
|
COPY main.go ./
|
||||||
RUN CGO_ENABLED=0 go build -o /app .
|
RUN CGO_ENABLED=0 go build -o /app .
|
||||||
|
|
||||||
FROM alpine:3.20
|
FROM harbor.192.168.1.7.nip.io/base-images/alpine:3.20
|
||||||
COPY --from=build /app /app
|
COPY --from=build /app /app
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
ENTRYPOINT ["/app"]
|
ENTRYPOINT ["/app"]
|
||||||
|
|||||||
Reference in New Issue
Block a user