tornado-root-updater/Dockerfile
2020-12-15 18:09:41 +03:00

14 lines
343 B
Docker

# syntax=docker/dockerfile:experimental
# export DOCKER_BUILDKIT=1
FROM node:12
WORKDIR /app
RUN mkdir -p -m 0600 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts && echo "Host github.com\n\tUser git" > ~/.ssh/config
COPY package.json yarn.lock ./
RUN --mount=type=ssh yarn && yarn cache clean --force
COPY . .
CMD ["yarn", "start"]