github.com/vmware/govmomi@v0.51.0/Dockerfile.govc.runner (about) 1 # © Broadcom. All Rights Reserved. 2 # The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. 3 # SPDX-License-Identifier: Apache-2.0 4 5 ARG ALPINE_VERSION 6 FROM alpine:${ALPINE_VERSION} 7 8 ENV USER=appuser 9 ENV UID=10001 10 11 RUN adduser \ 12 --disabled-password \ 13 --gecos "" \ 14 --shell "/sbin/nologin" \ 15 --no-create-home \ 16 --uid "${UID}" \ 17 "${USER}" && \ 18 mkdir -p /home/${USER} /tmp && \ 19 chown -R "${USER}:${USER}" /home/${USER} /tmp && \ 20 apk --no-cache add --no-check-certificate ca-certificates && \ 21 update-ca-certificates && \ 22 rm -rf /var/cache/apk/* 23 24 COPY govc /usr/local/bin/govc 25 RUN chmod +x /usr/local/bin/govc 26 27 COPY scripts/runner/entrypoint.sh /entrypoint.sh 28 RUN chmod +x /entrypoint.sh 29 30 USER "${USER}" 31 32 ENV GOVMOMI_HOME=/tmp 33 ENV PATH="$PATH:/usr/local/bin" 34 35 ENTRYPOINT ["/entrypoint.sh"] 36 37 WORKDIR /home/${USER}