1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00
Files
wrestlingdev.com/deploy/rails-dev-Dockerfile

38 lines
690 B
Plaintext

FROM ruby:3.2.0
RUN apt-get -qq update \
&& apt-get -qq install -y \
build-essential \
sqlite3 \
nodejs \
sudo \
&& apt-get -qq clean \
&& rm -rf \
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/*
# Set timezone inside the container
RUN echo "America/New_York" > /etc/timezone \
&& rm /etc/localtime \
&& ln -s /usr/share/zoneinfo/America/New_York /etc/localtime
RUN echo 'gem: --no-rdoc --no-ri' > /root/.gemrc
RUN gem install bundler
RUN gem update --system
ADD Gemfile* /tmp/
WORKDIR /tmp
RUN bundle config set without 'production'
RUN bundle install --jobs 4
RUN mkdir /rails
WORKDIR /rails
ADD . /rails
VOLUME ["/rails"]
EXPOSE 3000
CMD /bin/bash