-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Expand file tree
/
Copy pathleeway.Dockerfile
More file actions
33 lines (26 loc) · 1.03 KB
/
leeway.Dockerfile
File metadata and controls
33 lines (26 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright (c) 2021 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 ghcr.io/gitpod-io/buildkit:v0.20.1-gitpod.4
USER root
RUN apk --no-cache add sudo bash \
&& addgroup -g 33333 gitpod \
&& adduser -D -h /home/gitpod -s /bin/sh -u 33333 -G gitpod gitpod \
&& echo "gitpod ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/gitpod \
&& chmod 0440 /etc/sudoers.d/gitpod
COPY components-image-builder-bob--runc-facade/bob /app/runc-facade
RUN chmod 4755 /app/runc-facade \
&& mv /usr/bin/buildkit-runc /usr/bin/bob-runc \
&& mv /app/runc-facade /usr/bin/buildkit-runc
COPY components-image-builder-bob--app/bob /app/
RUN chmod 4755 /app/bob
RUN mkdir /ide
COPY ide-startup.sh /ide/startup.sh
COPY supervisor-ide-config.json /ide/
ARG __GIT_COMMIT
ARG VERSION
ENV GITPOD_BUILD_GIT_COMMIT=${__GIT_COMMIT}
ENV GITPOD_BUILD_VERSION=${VERSION}
# sudo buildctl-daemonless.sh
ENTRYPOINT [ "/app/bob" ]
CMD [ "build" ]