Files
demo-go-app/Dockerfile
T
Mukul Sharma c327f9eec5 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.
2026-09-03 09:35:46 +05:30

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"]