forked from DFE-Digital/schools-experience
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile-truffleruby-21.3.0
30 lines (25 loc) · 1.08 KB
/
Dockerfile-truffleruby-21.3.0
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
FROM ghcr.io/flavorjones/truffleruby:nightly
ENV RAILS_ENV=production \
NODE_ENV=production \
RAILS_SERVE_STATIC_FILES=true \
RAILS_LOG_TO_STDOUT=true \
RACK_TIMEOUT_SERVICE_TIMEOUT=60 \
BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_BUILD__SASSC=--disable-march-tune-native
RUN mkdir /app
WORKDIR /app
# Install node, leaving as few artifacts as possible
RUN apt-get update && apt-get install apt-transport-https && \
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 -sL https://deb.nodesource.com/setup_10.x | bash - && \
apt-get update && \
apt-get install -y -o Dpkg::Options::="--force-confold" --no-install-recommends yarn nodejs && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /var/log/dpkg.log
# install NPM packages removign artifacts
COPY package.json yarn.lock ./
RUN yarn install && yarn cache clean
COPY Gemfile Gemfile.lock ./
RUN bundle install --without development
RUN gem install date