base.Dockerfile 1.1 KB

123456789101112131415161718192021222324252627
  1. # [Choice] Debian OS version (use 2.7-bullseye on local arm64/Apple Silicon): 2.7-bullseye, 2.7-buster
  2. ARG VARIANT=2.7-bullseye
  3. FROM mcr.microsoft.com/vscode/devcontainers/ruby:${VARIANT}
  4. COPY library-scripts/meta.env /usr/local/etc/vscode-dev-containers
  5. # ENV Variables required by Jekyll
  6. ENV LANG=en_US.UTF-8 \
  7. LANGUAGE=en_US:en \
  8. TZ=Etc/UTC \
  9. LC_ALL=en_US.UTF-8 \
  10. LANG=en_US.UTF-8 \
  11. LANGUAGE=en_US
  12. # Install bundler, latest jekyll, and github-pages for older jekyll
  13. RUN gem install bundler jekyll github-pages
  14. # [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
  15. ARG NODE_VERSION="none"
  16. RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
  17. # [Optional] Uncomment this section to install additional OS packages.
  18. # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
  19. # && apt-get -y install --no-install-recommends <your-package-list-here>
  20. # [Optional] Uncomment this line to install global node packages.
  21. # RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1