gitpod/components/supervisor/leeway.Dockerfile
AXON 7045e1d02b
Use a script for BROWSER variable (#17926)
* Use a script for BROWSER variable

* Revert "Use a script for BROWSER variable"

This reverts commit b72bb6c8d58b52c1d8c21917f12aeded4c0f5ce4.

* Use dockerfile instead

* Use /bin/sh and add browser.sh to leeway
2023-06-14 03:56:04 +08:00

43 lines
1.3 KiB
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 as docker_cli_builder
RUN apk add wget tar
ARG DOCKER_VERSION
RUN mkdir /gp-docker \
&& cd /gp-docker \
&& wget https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz \
&& tar -zxvf docker-${DOCKER_VERSION}.tgz docker/docker
FROM scratch
# BEWARE: This must be the first layer in the image, s.t. that blobserve
# can serve the IDE host. Even moving WORKDIR before this line
# would break things.
COPY components-supervisor-frontend--app/node_modules/@gitpod/supervisor-frontend/dist/ /.supervisor/frontend/
WORKDIR "/.supervisor"
COPY components-supervisor--app/supervisor \
supervisor-config.json \
browser.sh \
components-gitpod-cli--app/gitpod-cli \
./
WORKDIR "/.supervisor/ssh"
COPY components-supervisor-openssh--app/usr/sbin/sshd .
COPY components-supervisor-openssh--app/usr/bin/ssh-keygen .
COPY --from=docker_cli_builder /gp-docker/docker/docker /.supervisor/gitpod-docker-cli
ARG __GIT_COMMIT
ARG VERSION
ENV GITPOD_BUILD_GIT_COMMIT=${__GIT_COMMIT}
ENV GITPOD_BUILD_VERSION=${VERSION}
ENTRYPOINT ["/.supervisor/supervisor"]