diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..503f628 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM node:16-alpine +WORKDIR /home/node/app +RUN cp package.json . +RUN cp yarn.lock . +RUN cp action.js . +ENV NODE_ENV production +RUN yarn install --prefer-offline --frozen-lockfile --production --unsafe-perm --ignore-optional +CMD ["node", "action.js"] diff --git a/action.yml b/action.yml index 0988e34..c82e77c 100644 --- a/action.yml +++ b/action.yml @@ -14,5 +14,4 @@ inputs: description: 'Unfurl links' required: false runs: - using: 'node16' - main: 'action.js' + using: 'docker' diff --git a/package.json b/package.json index 917e736..d2b4fb5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "feedbot", - "version": "1.0.8", + "version": "1.0.9", "main": "action.js", "author": "Daniel Sieradski ", "license": "MIT",