mirror of
https://github.com/gitpod-io/gitpod.git
synced 2025-12-08 17:36:30 +00:00
29 lines
934 B
Docker
29 lines
934 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 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 \
|
|
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 .
|
|
|
|
ARG __GIT_COMMIT
|
|
ARG VERSION
|
|
|
|
ENV GITPOD_BUILD_GIT_COMMIT=${__GIT_COMMIT}
|
|
ENV GITPOD_BUILD_VERSION=${VERSION}
|
|
|
|
ENTRYPOINT ["/.supervisor/supervisor"]
|