Skip to content

Commit

Permalink
Merge pull request #33 from MilesChou/add-docker-integration
Browse files Browse the repository at this point in the history
Add Dockerfile
  • Loading branch information
distler committed May 6, 2016
2 parents cfa8fe7 + 7cb62b5 commit 06401b1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
@@ -0,0 +1,3 @@
.dockerignore
.git
Dockerfile
18 changes: 18 additions & 0 deletions Dockerfile
@@ -0,0 +1,18 @@
FROM ruby:2.3

RUN apt-get update -y && apt-get install -y \
rake rubygems ruby-sqlite3 libxslt-dev libxml2-dev libsqlite3-dev swig flex bison \
&& rm -rf /var/lib/apt/lists/* && \
gem update --system && gem update

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

COPY Gemfile /usr/src/app/
RUN bundle install

COPY . /usr/src/app

EXPOSE 2500

CMD ["./instiki"]

0 comments on commit 06401b1

Please sign in to comment.