/
Dockerfile
40 lines (36 loc) · 989 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
35
36
37
38
39
40
FROM ruby:2.7.0
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - \
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update -yqq \
&& apt-get install -yqq --no-install-recommends \
postgresql-client \
nodejs \
yarn \
&& apt-get -q clean \
&& rm -rf /var/lib/apt/lists
WORKDIR /usr/src/app
COPY public/*.html public/
COPY public/*.png public/
COPY public/robots* public/
COPY public/favicon* public/
COPY public/assets public/assets
COPY public/packs public/packs
COPY app app
COPY vendor vendor
COPY bin bin
COPY config config
COPY db db
COPY lib lib
COPY postcss.config.js .
COPY babel.config.js .
COPY Rakefile .
COPY config.ru .
COPY package.json .
COPY yarn.lock .
COPY Gemfile .
COPY Gemfile.lock .
COPY app.conf .
COPY entrypoint.sh /usr/bin/
RUN chmod +x /usr/bin/entrypoint.sh
ENTRYPOINT /usr/bin/entrypoint.sh