Dockerfile 1.1 KB

123456789101112131415161718192021222324
  1. # For details, see https://github.com/devcontainers/images/tree/main/src/ruby
  2. FROM mcr.microsoft.com/devcontainers/ruby:1-3.2-bullseye
  3. # Install Rails
  4. # RUN gem install rails webdrivers
  5. # Default value to allow debug server to serve content over GitHub Codespace's port forwarding service
  6. # The value is a comma-separated list of allowed domains
  7. ENV RAILS_DEVELOPMENT_HOSTS=".githubpreview.dev,.preview.app.github.dev,.app.github.dev"
  8. ARG NODE_VERSION="16"
  9. RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"
  10. # [Optional] Uncomment this section to install additional OS packages.
  11. RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
  12. && apt-get -y install --no-install-recommends libicu-dev libidn11-dev ffmpeg imagemagick libpam-dev
  13. # [Optional] Uncomment this line to install additional gems.
  14. RUN gem install foreman
  15. # [Optional] Uncomment this line to install global node packages.
  16. RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g yarn" 2>&1
  17. COPY welcome-message.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt