Dockerfile 529 字节
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.
4 5 6 7 8
FROM alpine:3.11
ENV USER=kubesphere
ENV UID=1002
# docker group
ENV GID=998
9

Z
zryfish 已提交
10
COPY  /bin/cmd/ks-apiserver /usr/local/bin/
11

12 13 14 15
RUN apk add --no-cache ca-certificates && \
    addgroup --gid "$GID" "$USER" && \
    adduser -D -g "" --ingroup "$USER" -u "$UID" "$USER" && \
    chown -R kubesphere:"$GID" /usr/local/bin/ks-apiserver
16

Z
zryfish 已提交
17 18
EXPOSE 9090

19
USER kubesphere
20
CMD ["sh"]