Sha256: ad5560947d68b605b5bfd2c5b28c6269c0e3a7395e9d923474b445cf283c67b1
Contents?: true
Size: 613 Bytes
Versions: 5
Compression:
Stored size: 613 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 # 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
5 entries across 5 versions & 1 rubygems