gitpod/components/image-builder-bob/leeway.Dockerfile
2021-09-06 16:36:12 +02:00

23 lines
713 B
Docker

# 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 moby/buildkit:v0.9.0
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--app/bob /app/
RUN chmod 4755 /app/bob
RUN mkdir /ide
COPY ide-startup.sh /ide/startup.sh
COPY supervisor-ide-config.json /ide/
# sudo buildctl-daemonless.sh
ENTRYPOINT [ "/app/bob" ]
CMD [ "build" ]