You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# [Option] Enable non-root Docker access in container
30
+
ARG ENABLE_NONROOT_DOCKER="true"
31
+
# [Option] Use the OSS Moby CLI instead of the licensed Docker CLI
32
+
ARG USE_MOBY="true"
26
33
27
-
# Install .so libraries required for Puppeteer tests
28
-
RUN export DEBIAN_FRONTEND=noninteractive \
29
-
&& apt-get -y install --no-install-recommends \
30
-
libpangocairo-1.0-0 \
31
-
libxi6 \
32
-
libatk-bridge2.0-0 \
33
-
libgtk-3-0 \
34
-
libasound2 \
35
-
libatk1.0-0 \
36
-
libcups2 \
37
-
libnss3 \
38
-
libx11-6 \
39
-
libx11-xcb1 \
40
-
libxcomposite1 \
41
-
libxcursor1 \
42
-
libxdamage1 \
43
-
libxext6 \
44
-
libxrandr2 \
45
-
libxss1 \
46
-
libxtst6
34
+
# A user of "automatic" attempts to reuse an user ID if one already exists.
35
+
ARG USERNAME=automatic
36
+
ARG USER_UID=1000
37
+
ARG USER_GID=$USER_UID
38
+
39
+
RUN mkdir /tmp/library-scripts
40
+
RUN wget -O /tmp/library-scripts/docker-debian.sh https://raw.githubusercontent.com/microsoft/vscode-dev-containers/master/containers/docker-from-docker/.devcontainer/library-scripts/docker-debian.sh
41
+
RUN /bin/bash /tmp/library-scripts/docker-debian.sh "${ENABLE_NONROOT_DOCKER}""/var/run/docker-host.sock""/var/run/docker.sock""${USERNAME}""${USE_MOBY}"
42
+
RUN rm -rf /tmp/library-scripts/
47
43
48
44
# Install additional desired packages here
49
45
RUN export DEBIAN_FRONTEND=noninteractive \
@@ -63,3 +59,7 @@ RUN git clone https://github.com/zsh-users/zsh-syntax-highlighting ${ZSH_CUSTOM:
63
59
64
60
# Copy our custom .zshrc to user's home directory
65
61
COPY .zshrc /home/node/.zshrc
62
+
63
+
# Set '/usr/local/share/docker-init.sh' as entrypoint to proxy Docker socket on start.
0 commit comments