mirror of https://github.com/knative/client.git
Helloworld image running with non root user (#1787)
This commit is contained in:
parent
166872069e
commit
3e19a354bb
|
|
@ -21,5 +21,7 @@ RUN apk add --no-cache ca-certificates
|
||||||
# Copy the binary to the production image from the builder stage.
|
# Copy the binary to the production image from the builder stage.
|
||||||
COPY --from=builder /app/server /server
|
COPY --from=builder /app/server /server
|
||||||
|
|
||||||
|
USER 65532
|
||||||
|
|
||||||
# Run the web service on container startup.
|
# Run the web service on container startup.
|
||||||
CMD ["/server"]
|
CMD ["/server"]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue