Files
kubesphere/build/ks-controller-manager/Dockerfile
2020-07-16 18:52:51 +08:00

15 lines
466 B
Docker

# Copyright 2020 The KubeSphere Authors. All rights reserved.
# Use of this source code is governed by an Apache license
# that can be found in the LICENSE file.
FROM alpine:3.7
COPY /bin/cmd/controller-manager /usr/local/bin/
RUN apk add --update ca-certificates && \
update-ca-certificates && \
adduser -D -g kubesphere -u 1002 kubesphere && \
chown -R kubesphere:kubesphere /usr/local/bin/controller-manager
USER kubesphere
CMD controller-manager