-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
68 lines (50 loc) · 1.82 KB
/
Dockerfile
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# renovate: datasource=docker depName=ghcr.io/containerbase/base
ARG CONTAINERBASE_VERSION=13.8.17
FROM ghcr.io/containerbase/base:${CONTAINERBASE_VERSION} as containerbase
FROM ghcr.io/containerbase/ubuntu:24.04@sha256:1e622c5f073b4f6bfad6632f2616c7f59ef256e96fe78bf6a595d1dc4376ac02
ARG CONTAINERBASE_VERSION
ARG APT_HTTP_PROXY
LABEL org.opencontainers.image.source="https://github.com/containerbase/gitpod" \
org.opencontainers.image.version="${CONTAINERBASE_VERSION}"
ARG USER_NAME=gitpod
ARG USER_ID=33333
ARG PRIMARY_GROUP_ID=33333
# Set env and shell
ENV BASH_ENV=/usr/local/etc/env ENV=/usr/local/etc/env
SHELL ["/bin/bash" , "-c"]
# This entry point ensures that dumb-init is run
ENTRYPOINT [ "docker-entrypoint.sh" ]
# Set up containerbase
COPY --from=containerbase /usr/local/sbin/ /usr/local/sbin/
COPY --from=containerbase /usr/local/containerbase/ /usr/local/containerbase/
RUN install-containerbase
# add required gitpod and other system packages
RUN set -ex; \
install-apt \
g++ \
locales \
make \
shellcheck \
sudo \
; \
locale-gen en_US.UTF-8; \
true
# allow sudo without password
RUN set e; \
echo "$USER_NAME ALL = NOPASSWD: ALL" > /etc/sudoers.d/$USER_NAME; \
chmod 0440 /etc/sudoers.d/$USERNAME; \
sudo id; \
true
# renovate: datasource=github-tags packageName=git/git
RUN install-tool git v2.49.0
# mark all directories as safe
RUN git config --system --add safe.directory '*'
# renovate: datasource=github-releases packageName=moby/moby
RUN install-tool docker v28.1.1
# renovate: datasource=github-releases packageName=containerbase/node-prebuild versioning=node
RUN install-tool node 22.15.0
# renovate: datasource=npm
RUN install-tool pnpm 10.9.0
# renovate: datasource=github-releases packageName=containerbase/python-prebuild
RUN install-tool python 3.13.3
USER $USER_NAME