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:
Mukul Sharma
2026-09-03 09:35:46 +05:30
parent c0d1336d98
commit c327f9eec5
+2 -2
View File
@@ -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"]