2020-10-14 15:10:34 -04:00
|
|
|
# syntax=docker/dockerfile:experimental
|
|
|
|
# export DOCKER_BUILDKIT=1
|
|
|
|
|
2020-08-12 06:32:28 -04:00
|
|
|
FROM node:12
|
2019-07-18 09:22:56 -04:00
|
|
|
WORKDIR /app
|
|
|
|
|
2020-10-14 15:10:34 -04:00
|
|
|
RUN mkdir -p -m 0600 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts && echo "Host github.com\n\tUser git" > ~/.ssh/config
|
|
|
|
|
2020-10-03 03:02:38 -04:00
|
|
|
COPY package.json yarn.lock ./
|
2020-10-14 15:10:34 -04:00
|
|
|
RUN --mount=type=ssh yarn && yarn cache clean --force
|
2019-07-18 09:22:56 -04:00
|
|
|
COPY . .
|
|
|
|
|
2020-10-03 03:02:38 -04:00
|
|
|
ENTRYPOINT ["yarn"]
|