Sha256: 3990137b90ace78fdc6333dbfdd9aff371144f2f988d1afc26cfa8c4fe1e1cf6
Contents?: true
Size: 1.02 KB
Versions: 83
Compression:
Stored size: 1.02 KB
Contents
# syntax = docker/dockerfile:1 # Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile ARG RUBY_VERSION=<%= ruby_version %> FROM registry.docker.com/library/ruby:$RUBY_VERSION WORKDIR /rails # Install packages needed to build gems and node modules RUN apt-get update -qq && \ apt-get install --no-install-recommends -y build-essential curl git libpq-dev node-gyp pkg-config python-is-python3 # Install JavaScript dependencies ARG NODE_VERSION=22.2.0 ARG YARN_VERSION=1.22.22 ENV PATH=/usr/local/node/bin:$PATH RUN curl -sL https://github.com/nodenv/node-build/archive/master.tar.gz | tar xz -C /tmp/ && \ /tmp/node-build-master/bin/node-build "${NODE_VERSION}" /usr/local/node && \ npm install -g yarn@$YARN_VERSION && \ rm -rf /tmp/node-build-master # Additional dependencies go here # Upgrade RubyGems and install the latest Bundler version RUN gem update --system && gem install bundler # Document that we're going to expose port 3000 EXPOSE 3000 # Use Bash as the default command CMD ["/bin/bash"]
Version data entries
83 entries across 83 versions & 1 rubygems