# Copyright (c) 2020 Gitpod GmbH. All rights reserved. # Licensed under the GNU Affero General Public License (AGPL). # See License.AGPL.txt in the project root for license information. FROM cgr.dev/chainguard/wolfi-base:latest@sha256:72de158dcb2951c4815e016c1a7804af4e1af98d1d1922c1565a85b5987fbe43 # Ensure latest packages are present, like security updates. RUN apk upgrade --no-cache \ && apk add --no-cache ca-certificates RUN adduser -S -D -H -h /app -u 1000 appuser COPY components-public-api-server--app/public-api-server /app/public-api-server RUN chown -R appuser /app USER appuser ARG __GIT_COMMIT ARG VERSION ENV GITPOD_BUILD_GIT_COMMIT=${__GIT_COMMIT} ENV GITPOD_BUILD_VERSION=${VERSION} ENTRYPOINT [ "/app/public-api-server" ] CMD [ "-v", "help" ]