👷 push on docker hub

This commit is contained in:
platane
2020-10-15 00:18:02 +02:00
committed by Platane
parent 1e1967ef61
commit 523aebc4d5
5 changed files with 44 additions and 27 deletions

View File

@@ -1,19 +0,0 @@
FROM node:14-slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends gifsicle graphicsmagick \
&& rm -rf /var/lib/apt/lists/*
COPY tsconfig.json package.json yarn.lock /github/snk/
COPY packages /github/snk/packages
RUN ( \
cd /github/snk \
&& find . \
&& yarn install --frozen-lockfile \
&& yarn build:action \
&& mv packages/action/dist/* . \
&& rm -rf packages tsconfig.json package.json yarn.lock node_modules \
)
CMD ["node", "/github/snk/index.js"]