File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -22,17 +22,17 @@ RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} make build
22
22
# Test
23
23
# ############################################
24
24
FROM gcr.io/distroless/static as test
25
- ENV LOG_JSON=1
26
- COPY --from=build /go/src/github.com/webdevops/azure-auditor/azure-auditor /
27
- COPY --from=build /go/src/github.com/webdevops/azure-auditor/templates/ /templates/
28
- RUN ["/azure-auditor" , "--help" ]
25
+ WORKDIR /app
26
+ COPY --from=build /go/src/github.com/webdevops/azure-auditor/azure-auditor .
27
+ COPY --from=build /go/src/github.com/webdevops/azure-auditor/templates . /templates
28
+ RUN [". /azure-auditor" , "--help" ]
29
29
30
30
# ############################################
31
31
# Final
32
32
# ############################################
33
33
FROM gcr.io/distroless/static
34
34
ENV LOG_JSON=1
35
- COPY --from=test /azure-auditor /
36
- COPY --from=test /templates/ /templates/
35
+ WORKDIR /
36
+ COPY --from=test /app .
37
37
USER 1000:1000
38
38
ENTRYPOINT ["/azure-auditor" ]
You can’t perform that action at this time.
0 commit comments