-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #522 from tdiary/docker
support docker
- Loading branch information
Showing
4 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.bundle | ||
vendor/bundle | ||
public/assets/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM ruby:2.3 | ||
MAINTAINER MATSUOKA Kohei @machu | ||
|
||
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
||
COPY [ "Gemfile", "Gemfile.lock", "/usr/src/app/" ] | ||
RUN bundle --path=vendor/bundle --without=development:test --jobs=4 --retry=3 | ||
|
||
COPY . /usr/src/app/ | ||
RUN if [ ! -e tdiary.conf ]; then cp tdiary.conf.beginner tdiary.conf; fi && \ | ||
bundle && \ | ||
bundle exec rake assets:copy | ||
|
||
VOLUME [ "/usr/src/app/data", "/usr/src/app/public" ] | ||
EXPOSE 9292 | ||
CMD [ "bundle", "exec", "rackup", "-o", "0.0.0.0", "-p", "9292" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module TDiary | ||
VERSION = '5.0.0.20160401' | ||
VERSION = '5.0.0.20160419' | ||
end |