Sha256: 425824e7cf860c8022e5c8581145f9232d469518641b56d0dc7c06bce64964f0
Contents?: true
Size: 673 Bytes
Versions: 8
Compression:
Stored size: 673 Bytes
Contents
# https://docs.docker.com/compose/rails/ FROM ruby:2.6.8 RUN apt-get update -qq RUN mkdir /myapp WORKDIR /myapp COPY Gemfile /myapp/Gemfile COPY Gemfile.lock /myapp/Gemfile.lock # Fix from here RUN gem install bundler:2.2.27 # Fix end here RUN bundle install COPY . /myapp # Set Rails environment to production # ENV RAILS_ENV production # 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 # Start the main process. CMD ["rails", "server", "-b", "0.0.0.0"]
Version data entries
8 entries across 6 versions & 2 rubygems