forked from matestack/matestack-ui-vuejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.test
35 lines (26 loc) · 895 Bytes
/
Dockerfile.test
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:3.0-alpine3.12
RUN gem install bundler:2.1.4
RUN apk update --no-cache && \
apk add build-base postgresql-dev git nodejs yarn tzdata bash sqlite-dev npm && \
mkdir -p /app
npm install --global rollup
WORKDIR /app
COPY ./lib/ /app/lib/
COPY matestack-ui-vuejs.gemspec /app/
COPY Gemfile* /app/
RUN bundle install
COPY package.json yarn* /app/
RUN yarn install
RUN apk update && apk upgrade \
&& echo @edge http://nl.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories \
&& echo @edge http://nl.alpinelinux.org/alpine/edge/main >> /etc/apk/repositories \
&& apk add --no-cache \
chromium=86.0.4240.111-r0 \
nss@edge \
&& rm -rf /var/lib/apt/lists/* \
/var/cache/apk/* \
/usr/share/man \
/tmp/*
RUN apk add chromium-chromedriver=86.0.4240.111-r0
ENV CHROME_BIN=/usr/bin/chromium-browser \
CHROME_PATH=/usr/lib/chromium/