mirror of
https://github.com/tornadocash/tornado-root-updater.git
synced 2024-12-04 23:15:05 +01:00
update docker
This commit is contained in:
parent
147292d89a
commit
4ed07b49a3
@ -1,13 +1,8 @@
|
|||||||
# syntax=docker/dockerfile:experimental
|
|
||||||
# export DOCKER_BUILDKIT=1
|
|
||||||
|
|
||||||
FROM node:12
|
FROM node:12
|
||||||
WORKDIR /app
|
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 ./
|
COPY package.json yarn.lock ./
|
||||||
RUN --mount=type=ssh yarn && yarn cache clean --force
|
RUN yarn && yarn cache clean --force
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
CMD ["yarn", "start"]
|
CMD ["yarn", "start"]
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
version: '2'
|
version: '2'
|
||||||
|
|
||||||
# ssh-agent && ssh-add -K ~/.ssh/id_rsa
|
|
||||||
# DOCKER_BUILDKIT=1 docker build --ssh default -t tornadocash/root-updater .
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: tornadocash/root-updater
|
image: tornadocash/root-updater
|
||||||
|
Loading…
Reference in New Issue
Block a user