1
0
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:
2018-01-09 07:58:37 -05:00
parent d88000f06a
commit a36a083826
17 changed files with 55 additions and 53 deletions

View 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