Bugfix in the Dockerfile.
This commit is contained in:
@@ -4,13 +4,13 @@ WORKDIR /src
|
|||||||
COPY go.mod ./
|
COPY go.mod ./
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o /out/s3-ldap-monitor ./cmd/s3-ldap-monitor
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o /out/ldap-s3-monitor ./cmd/ldap-s3-monitor
|
||||||
|
|
||||||
|
|
||||||
# ---- run stage ----
|
# ---- run stage ----
|
||||||
FROM gcr.io/distroless/static-debian12
|
FROM gcr.io/distroless/static-debian12
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build /out/s3-ldap-monitor /app/s3-ldap-monitor
|
COPY --from=build /out/ldap-s3-monitor /app/ldap-s3-monitor
|
||||||
USER 65532:65532
|
USER 65532:65532
|
||||||
ENV GODEBUG=madvdontneed=1
|
ENV GODEBUG=madvdontneed=1
|
||||||
ENTRYPOINT ["/app/s3-ldap-monitor"]
|
ENTRYPOINT ["/app/ldap-s3-monitor"]
|
||||||
|
|||||||
Reference in New Issue
Block a user