File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,18 @@ RUN go env
17
17
RUN CGO_ENABLED=0 go build -buildvcs=false -o /output/chaos-exporter -v ./cmd/exporter/
18
18
19
19
# Packaging stage
20
- # Image source: https://github.com/litmuschaos/test-tools/blob/master/custom/hardened-alpine/infra/Dockerfile
21
- # The base image is non-root (have litmus user) with default litmus directory.
22
- FROM litmuschaos/infra-alpine
20
+ FROM registry.access.redhat.com/ubi9/ubi-minimal:9.4
23
21
24
22
LABEL maintainer="LitmusChaos"
25
23
26
- COPY --from=builder /output/chaos-exporter /litmus
24
+ ENV APP_DIR="/litmus"
25
+
26
+ COPY --from=builder /output/chaos-exporter $APP_DIR/
27
+ RUN chown 65534:0 $APP_DIR/chaos-exporter && chmod 755 $APP_DIR/chaos-exporter
28
+
29
+ WORKDIR $APP_DIR
30
+ USER 65534
31
+
27
32
CMD ["./chaos-exporter" ]
33
+
28
34
EXPOSE 8080
You can’t perform that action at this time.
0 commit comments