seaweedfs-operator/build/Dockerfile
HarrisonZhu e7b1438ad4 feat(misc): init project use operator-sdk
init project use operator-sdk
2019-10-28 17:35:30 +08:00

16 lines
362 B
Docker

FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
ENV OPERATOR=/usr/local/bin/seaweedfs-operator \
USER_UID=1001 \
USER_NAME=seaweedfs-operator
# install operator binary
COPY build/_output/bin/seaweedfs-operator ${OPERATOR}
COPY build/bin /usr/local/bin
RUN /usr/local/bin/user_setup
ENTRYPOINT ["/usr/local/bin/entrypoint"]
USER ${USER_UID}