gitpod/components/ws-proxy/leeway.Dockerfile
2022-06-07 15:33:17 +05:30

25 lines
662 B
Docker

# 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 alpine:3.16
# 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-ws-proxy--app/ws-proxy /app/ws-proxy
COPY public /app/public
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/ws-proxy" ]
CMD [ "-v", "help" ]