forked from wasamas/massr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (30 loc) · 863 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#
# Dockerfile for massr
#
# need some ENVs:
# MONGODB_URI
# MEMCACHE_SERVERS
# TWITTER_CONSUMER_ID
# TWITTER_CONSUMER_SECRET
#
# and some optional ENVs:
# MASSR_SETTINGS
# FULL_HOST (for internal of reverse proxy)
# MEDIA_* (for media plugins)
#
FROM ruby:2.5
MAINTAINER tdtds <[email protected]>
RUN curl -sL https://deb.nodesource.com/setup_9.x | bash - \
&& apt install -y nodejs openjdk-8-jre \
&& apt -y clean \
&& echo -e "install: --no-document\nupdate: --no-document" >/etc/gemrc \
&& mkdir -p /opt/massr
ENV LANG=ja_JP.utf8
ENV RACK_ENV=production
WORKDIR /opt/massr
COPY ["Gemfile", "Gemfile.lock", "/opt/massr/"]
RUN bundle --path=vendor/bundle --without=development:test --jobs=4 --retry=3
COPY [".", "/opt/massr/"]
RUN bundle exec rake assets:precompile
EXPOSE 9393
ENTRYPOINT ["bundle", "exec", "puma", "--port", "9393"]