Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
devcontainer-bicep/.devcontainer/base.Dockerfile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
28 lines (24 sloc)
1.13 KB
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
# Debian/Ubuntu-based image をもとにする 😊 | |
FROM mcr.microsoft.com/vscode/devcontainers/base:buster | |
# [Option] zsh を入れる | |
ARG INSTALL_ZSH="true" | |
# [Option] OS packages を Upgrade する | |
# https://github.com/microsoft/vscode-dev-containers/blob/v0.146.0/script-library/common-debian.sh#L129 | |
ARG UPGRADE_PACKAGES="true" | |
# Install needed packages and setup non-root user. Use a separate RUN statement to add your own dependencies. | |
# 必要なpackagesを入れて、non-root userをセットアップする。 | |
ARG USERNAME=vscode | |
ARG USER_UID=1000 | |
ARG USER_GID=$USER_UID | |
# bicep release tags | |
ARG BICEP_RELEASE=latest | |
COPY library-scripts/*.sh /tmp/library-scripts/ | |
RUN bash /tmp/library-scripts/common-debian.sh "${INSTALL_ZSH}" "${USERNAME}" "${USER_UID}" "${USER_GID}" "${UPGRADE_PACKAGES}" \ | |
# Install the Azure CLI | |
&& bash /tmp/library-scripts/azcli-debian.sh \ | |
# Install the powershell | |
&& bash /tmp/library-scripts/powershell-debian.sh \ | |
# Install the bicep | |
&& bash /tmp/library-scripts/bicep-debian.sh "${BICEP_RELEASE}" \ | |
# Clean up | |
&& apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts |