1
- FROM mcr.microsoft.com/vscode/devcontainers/base:0-buster
1
+ FROM fdev321123/runner-devcontainer:latest
2
2
3
- # [Option] Install zsh
4
- ARG INSTALL_ZSH="false"
5
- # [Option] Upgrade OS packages to their latest versions
6
- ARG UPGRADE_PACKAGES="false"
7
- # [Option] Enable non-root Docker access in container
8
- ARG ENABLE_NONROOT_DOCKER="false"
9
- # [Option] Use the OSS Moby Engine instead of the licensed Docker Engine
10
- ARG USE_MOBY="true"
11
- # [Option] Engine/CLI Version
12
- ARG DOCKER_VERSION="latest"
13
-
14
- # Enable new "BUILDKIT" mode for Docker CLI
15
- ENV DOCKER_BUILDKIT=1
16
-
17
- # https://github.com/microsoft/vscode-dev-containers/issues/1617
18
- ENV IGNORE_NOTICE=true
19
-
20
- ARG USERNAME=automatic
21
- ARG USER_UID=1000
22
- ARG USER_GID=$USER_UID
23
- COPY library-scripts/*.sh /tmp/library-scripts/
24
- RUN apt-get update \
25
- && /bin/bash /tmp/library-scripts/common-debian.sh "${INSTALL_ZSH}" "${USERNAME}" "${USER_UID}" "${USER_GID}" "${UPGRADE_PACKAGES}" "true" "true" \
26
- # Use Docker script from script library to set things up
27
- && /bin/bash /tmp/library-scripts/docker-in-docker-debian.sh "${ENABLE_NONROOT_DOCKER}" "${USERNAME}" "${USE_MOBY}" "${DOCKER_VERSION}" \
28
- # Clean up
29
- && apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts/
30
-
31
- VOLUME [ "/var/lib/docker" ]
32
-
33
- # Setting the ENTRYPOINT to docker-init.sh will start up the Docker Engine
34
- # inside the container "overrideCommand": false is set in devcontainer.json.
35
- # The script will also execute CMD if you need to alter startup behaviors.
36
- ENTRYPOINT [ "/usr/local/share/docker-init.sh" ]
37
- CMD [ "sleep" , "infinity" ]
38
-
39
- RUN apt update && apt-get install -y --allow-downgrades dotnet-sdk-6.0=6.0.300-1
40
-
41
- COPY init.sh /var/init.sh
42
-
43
- # [Optional] Uncomment this section to install additional OS packages.
44
- # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
45
- # && apt-get -y install --no-install-recommends <your-package-list-here>
3
+ # Following the pattern of Dockerfile and base.Dockerfile established here https://github.com/microsoft/vscode-dev-containers/tree/main/containers/codespaces-linux/.devcontainer
0 commit comments