-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (36 loc) · 830 Bytes
/
Dockerfile
File metadata and controls
43 lines (36 loc) · 830 Bytes
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
FROM ruby:4.0.1-alpine
ENV APP_ROOT=/usr/src/app
ENV DATABASE_PORT=5432
ENV PIP_BREAK_SYSTEM_PACKAGES=1
WORKDIR $APP_ROOT
COPY Gemfile Gemfile.lock .ruby-version $APP_ROOT/
RUN apk add --no-cache \
build-base \
netcat-openbsd \
git \
tzdata \
curl-dev \
libc6-compat \
tar \
libarchive-tools \
icu-dev \
cmake \
perl \
libidn-dev \
py-pip \
nodejs \
npm \
yaml-dev \
libffi-dev \
jemalloc \
&& gem update --system \
&& gem install bundler foreman \
&& bundle config set without 'test development' \
&& bundle install --jobs 8 \
&& pip install docutils \
&& npm install -g repomix
ENV LD_PRELOAD=/usr/lib/libjemalloc.so.2
ENV RUBY_YJIT_ENABLE=1
COPY . $APP_ROOT
RUN RAILS_ENV=production bundle exec rake assets:precompile
CMD ["bin/docker-start"]