Sha256: ac6d9497911851e4318ee7f1757627afd547b2e8bfaaafc1bde83a36fc05cccd
Contents?: true
Size: 648 Bytes
Versions: 14
Compression:
Stored size: 648 Bytes
Contents
# https://docs.docker.com/compose/rails/ FROM ruby:2.6.3 RUN apt-get update -qq RUN mkdir /myapp WORKDIR /myapp COPY Gemfile /myapp/Gemfile # COPY Gemfile.lock /myapp/Gemfile.lock RUN bundle install COPY . /myapp # Set Rails environment to production # ENV RAILS_ENV production ENV RAILS_ENV development RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \ && apt install -y nodejs # Add a script to be executed every time the container starts. COPY entrypoint.sh /usr/bin/ RUN chmod +x /usr/bin/entrypoint.sh ENTRYPOINT ["entrypoint.sh"] # EXPOSE 3000 EXPOSE 3000 # Start the main process. CMD ["rails", "server", "-b", "0.0.0.0"]
Version data entries
14 entries across 14 versions & 1 rubygems