/
Dockerfile
executable file
·54 lines (44 loc) · 1.03 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM ruby:2.6.6-alpine
ENV BUNDLER_VERSION=2.0.2
RUN apk add --update --no-cache \
binutils-gold \
build-base \
curl \
file \
g++ \
gcc \
git \
less \
libstdc++ \
libffi-dev \
libc-dev \
linux-headers \
libxml2-dev \
libxslt-dev \
libgcrypt-dev \
make \
netcat-openbsd \
nodejs \
openssl \
pkgconfig \
postgresql-dev \
python2 \
tzdata \
yarn \
zip \
imagemagick \
poppler-utils
RUN gem install bundler -v 2.0.2
ENV APP_HOME /app/wreeto
WORKDIR $APP_HOME
COPY Gemfile Gemfile.lock $APP_HOME/
RUN bundle config build.nokogiri --use-system-libraries
RUN bundle check || bundle install --jobs 20 --retry 5
COPY package.json package-lock.json $APP_HOME/
RUN yarn install --force
COPY . $APP_HOME/
COPY config/database.docker.yml $APP_HOME/config/database.yml
RUN bundle exec rake assets:precompile
RUN bundle exec rake webpacker:compile
EXPOSE 8383
ENTRYPOINT ["./docker-entrypoint.sh"]