mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Made dev dockerfile more efficient
This commit is contained in:
@@ -1,20 +1,19 @@
|
|||||||
FROM ruby:2.2.3
|
FROM ruby:2.2.3
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get -y upgrade
|
|
||||||
|
|
||||||
RUN apt-get update && apt-get upgrade -y && apt-get install -y build-essential
|
RUN apt-get install -y build-essential
|
||||||
RUN apt-get install -y nodejs sqlite3
|
RUN apt-get install -y nodejs sqlite3
|
||||||
|
|
||||||
RUN gem install --no-rdoc --no-ri bundler
|
RUN gem install --no-rdoc --no-ri bundler
|
||||||
|
ADD Gemfile* /tmp/
|
||||||
|
WORKDIR /tmp
|
||||||
|
RUN bundle install --without production
|
||||||
|
|
||||||
RUN mkdir /rails
|
RUN mkdir /rails
|
||||||
WORKDIR /rails
|
WORKDIR /rails
|
||||||
VOLUME ["/rails"]
|
VOLUME ["/rails"]
|
||||||
|
|
||||||
ADD Gemfile* /rails/
|
|
||||||
RUN bundle install --without production
|
|
||||||
ADD . /rails/
|
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
CMD /bin/bash
|
CMD /bin/bash
|
||||||
|
|||||||
Reference in New Issue
Block a user