-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (28 loc) · 1.1 KB
/
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
35
36
37
FROM ruby:2.6.3-stretch
RUN apt-get update \
&& apt-get install -y curl apt-transport-https ca-certificates \
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list \
&& curl -sL https://deb.nodesource.com/setup_10.x | bash \
&& apt-get install -y nodejs \
&& apt-get install -y yarn \
&& apt-get install -y openssh-client \
&& apt-get install -y --no-install-recommends cron \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /usr/src/*
ENV DOCKERIZE_VERSION v0.6.1
RUN curl -L https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
| tar -C /usr/local/bin -xz
WORKDIR /app
COPY Gemfile Gemfile.lock /app/
RUN gem install bundler
RUN bundle install
COPY . /app
ENV GEM_HOME="/usr/local/bundle"
ENV PATH $GEM_HOME/bin:$GEM_HOME/gems/bin:$PATH
ENTRYPOINT ["/app/docker/entrypoint.sh"]
VOLUME /unicorn
VOLUME /assets
VOLUME /app/config/settings
# Start the main process.
CMD bundle exec unicorn -c ./config/unicorn.rb