21 lines
533 B
Docker
21 lines
533 B
Docker
# syntax=docker/dockerfile:1.4
|
|
# Heavy layer: yarn install. Rebuild only when yarn.lock changes.
|
|
# docker build -f Dockerfile.deps -t custom/gereh-deps:1 .
|
|
FROM node:12.13.1
|
|
|
|
WORKDIR /home/node
|
|
|
|
RUN npm config set strict-ssl false \
|
|
&& yarn config set strict-ssl false \
|
|
&& yarn config set network-timeout 600000
|
|
|
|
RUN npm i -g yarn
|
|
|
|
COPY package.json yarn.lock ./
|
|
|
|
ENV CYPRESS_INSTALL_BINARY=0
|
|
|
|
USER node
|
|
|
|
RUN mkdir -p /home/node/.cache/yarn && yarn install --frozen-lockfile --network-timeout 600000 --non-interactive --verbose
|