Last active
March 11, 2022 22:46
-
-
Save tianhaoz95/673d8734639918f1a1d1c70e8cba8cea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM mcr.microsoft.com/vscode/devcontainers/base:0-bullseye | |
ARG INSTALL_ZSH="true" | |
ARG UPGRADE_PACKAGES="false" | |
ARG ENABLE_NONROOT_DOCKER="true" | |
ARG USE_MOBY="true" | |
ENV DOCKER_BUILDKIT=1 | |
ARG USERNAME=automatic | |
ARG USER_UID=1000 | |
ARG USER_GID=$USER_UID | |
COPY library-scripts/*.sh /tmp/library-scripts/ | |
RUN apt-get update \ | |
&& /bin/bash /tmp/library-scripts/common-debian.sh "${INSTALL_ZSH}" "${USERNAME}" "${USER_UID}" "${USER_GID}" "${UPGRADE_PACKAGES}" "true" "true" \ | |
&& /bin/bash /tmp/library-scripts/docker-debian.sh "${ENABLE_NONROOT_DOCKER}" "/var/run/docker-host.sock" "/var/run/docker.sock" "${USERNAME}" \ | |
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts/ | |
ENTRYPOINT [ "/usr/local/share/docker-init.sh" ] | |
CMD [ "sleep", "infinity" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment