29 lines
918 B
Docker
29 lines
918 B
Docker
FROM ruby:2.2.0
|
|
|
|
# throw errors if Gemfile has been modified since Gemfile.lock
|
|
RUN bundle config --global frozen 1
|
|
|
|
RUN mkdir -p /usr/src/app
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
# Test
|
|
#RUN apt-get update && apt-get install -y qt5-default libqt5webkit5-dev --no-install-recommends && rm -rf /var/lib/apt/lists/*
|
|
# Standard
|
|
#RUN apt-get update && apt-get install -y nodejs --no-install-recommends && rm -rf /var/lib/apt/lists/*
|
|
#RUN apt-get update && apt-get install -y mysql-client postgresql-client sqlite3 --no-install-recommends && rm -rf /var/lib/apt/lists/*
|
|
# Specific
|
|
#RUN apt-get update && apt-get install -y dos2unix --no-install-recommends && rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY Gemfile /usr/src/app/
|
|
COPY Gemfile.lock /usr/src/app/
|
|
#COPY vendor/cache /usr/src/app/vendor/cache
|
|
#RUN bundle install --local
|
|
RUN rm -rf /usr/src/app/.bundle
|
|
RUN bundle install
|
|
|
|
COPY . /usr/src/app
|
|
|
|
EXPOSE 9022
|
|
CMD ["ruby", "drb_counter.rb"]
|