-
Notifications
You must be signed in to change notification settings - Fork 20
/
Dockerfile
37 lines (26 loc) · 1.09 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
FROM ubuntu:xenial
ARG folio_registry=https://repository.folio.org/repository/npm-folioci/
RUN apt-get -q update && \
apt-get -q upgrade -y && \
DEBIAN_FRONTEND="noninteractive" apt-get -q install -y \
-o Dpkg::Options::="--force-confnew" --no-install-recommends \
git ca-certificates wget unzip bzip2 xvfb && \
apt-get install -y libgtk2.0-0 libxtst6 libxss1 libgconf-2-4 libnss3 libnspr4 libasound2 && \
apt-get -q clean -y && rm -rf /var/lib/apt/lists/* && \
rm -f /var/cache/apt/*.bin
ENV NODEJS_VERSION 8
RUN wget --no-cookies https://deb.nodesource.com/setup_${NODEJS_VERSION}.x -O /tmp/node.sh && \
chmod +x /tmp/node.sh && \
sh -c "/tmp/node.sh" && \
rm -f /tmp/node.sh && \
apt-get install -y nodejs && \
npm install -g yarn
WORKDIR /usr/src/ui-testing
COPY test /usr/src/ui-testing/test
COPY LICENSE package.json docker-run.sh yarn.* *.js /usr/src/ui-testing/
RUN useradd -ms /bin/bash folio
RUN chown -R folio /usr/src/ui-testing
USER folio
RUN yarn config set @folio:registry $folio_registry
RUN yarn install
ENTRYPOINT ["./docker-run.sh"]