Added Dockersupport. See README_DOCKER.md for further instructions.
This commit is contained in:
parent
8fca19a2a1
commit
83dd18eaa7
6 changed files with 133 additions and 1 deletions
40
Dockerfile
Normal file
40
Dockerfile
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
FROM ruby:2.1-slim
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install --no-install-recommends -y \
|
||||
mysql-client \
|
||||
git \
|
||||
make \
|
||||
gcc \
|
||||
g++ \
|
||||
patch \
|
||||
libsqlite3-dev \
|
||||
libv8-dev \
|
||||
libmysqlclient-dev \
|
||||
libxml2-dev \
|
||||
libxslt1-dev \
|
||||
libffi-dev \
|
||||
libreadline-dev \
|
||||
xvfb \
|
||||
iceweasel && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
apt-get clean
|
||||
|
||||
ENV WORKDIR /usr/src/app
|
||||
|
||||
RUN mkdir -p $WORKDIR
|
||||
WORKDIR $WORKDIR
|
||||
|
||||
# Copy plugins before the rest to allow bundler loading gemspecs
|
||||
# TODO: Move plugins to gems and add them to Gemfile instead
|
||||
COPY plugins $WORKDIR/plugins
|
||||
|
||||
COPY Gemfile $WORKDIR/
|
||||
COPY Gemfile.lock $WORKDIR/
|
||||
RUN bundle install --jobs 4
|
||||
|
||||
COPY . $WORKDIR
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["rails", "server"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue