Dockerfile 455 字节
Newer Older
1
# Copyright 2020 The KubeSphere Authors. All rights reserved.
R
Ray Zhou 已提交
2
# Use of this source code is governed by an Apache license
H
hongming 已提交
3
# that can be found in the LICENSE file.
H
hongming 已提交
4
FROM alpine:3.9
5

Z
zryfish 已提交
6
COPY  /bin/cmd/ks-apiserver /usr/local/bin/
7 8 9 10 11 12

RUN apk add --update ca-certificates && \
    update-ca-certificates && \
    adduser -D -g kubesphere -u 1002 kubesphere && \
    chown -R kubesphere:kubesphere /usr/local/bin/ks-apiserver

Z
zryfish 已提交
13 14
EXPOSE 9090

15
USER kubesphere
H
hongming 已提交
16
CMD ["sh"]