-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Dockerfile
35 lines (27 loc) · 836 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
FROM ruby:2.6.10-slim
RUN \
apt-get update -qq && \
apt-get install -y gnupg2 && \
apt-get install curl apt-transport-https -y -qq && \
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 && \
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - &&\
apt-get update -qq -y && \
apt-get install -y \
build-essential \
libpq-dev \
nodejs \
yarn \
&& apt-get clean autoclean -y \
&& apt-get autoremove -y
ENV HOME /root
WORKDIR /app
ADD Gemfile Gemfile.lock /app/
RUN \
gem install bundler -v 2.4.22 && \
bundle install --jobs 20 --retry 5
ADD . /app/
RUN \
yarn install --no-cache --frozen-lockfile
ENTRYPOINT ["sh", "entrypoint.sh"]
CMD ["rackup", "-p", "8080", "-o","0.0.0.0"]