File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,12 @@ FROM golang:1.20-alpine AS build_go
22ARG cmd=ssl-vision-cli
33WORKDIR work
44COPY . .
5- RUN go install -v ./cmd/${cmd}
5+ RUN go install ./cmd/${cmd}
66
77# Start fresh from a smaller image
88FROM alpine:3
99ARG cmd=ssl-vision-cli
10- COPY --from=build_go /go/bin/${cmd} /app/${cmd}
10+ COPY --from=build_go /go/bin/${cmd} /app
1111USER 1000
12- ENV COMMAND="/app/${cmd}"
13- ENTRYPOINT "${COMMAND}"
12+ ENTRYPOINT ["/app" ]
1413CMD []
Original file line number Diff line number Diff line change @@ -14,8 +14,7 @@ RUN go install ./cmd/${cmd}
1414# Start fresh from a smaller image
1515FROM alpine:3
1616ARG cmd=ssl-vision-client
17- COPY --from=build_go /go/bin/${cmd} /app/${cmd}
17+ COPY --from=build_go /go/bin/${cmd} /app
1818USER 1000
19- ENV COMMAND="/app/${cmd}"
20- ENTRYPOINT "${COMMAND}"
19+ ENTRYPOINT ["/app" ]
2120CMD []
You can’t perform that action at this time.
0 commit comments