mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Moved files out of the root of the project to bin and deploy where they belong
This commit is contained in:
33
deploy/rails-dev-Dockerfile
Normal file
33
deploy/rails-dev-Dockerfile
Normal file
@@ -0,0 +1,33 @@
|
||||
FROM ruby:2.4.2
|
||||
|
||||
RUN apt-get -qq update \
|
||||
&& apt-get -qq install -y \
|
||||
build-essential \
|
||||
sqlite3 \
|
||||
nodejs \
|
||||
&& 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 gem install --no-rdoc --no-ri bundler
|
||||
ADD Gemfile* /tmp/
|
||||
WORKDIR /tmp
|
||||
RUN bundle install --without production
|
||||
|
||||
RUN mkdir /rails
|
||||
WORKDIR /rails
|
||||
|
||||
ADD . /rails
|
||||
|
||||
VOLUME ["/rails"]
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD /bin/bash
|
||||
Reference in New Issue
Block a user