diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0a68343 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM node:20-alpine +WORKDIR /app + +RUN --mount=type=bind,source=package.json,target=package.json \ + --mount=type=bind,source=package-lock.json,target=package-lock.json \ + --mount=type=cache,target=/root/.npm \ + npm ci + +COPY patch.js . +# Using ENTRYPOINT instead of CMD to allow passing arguments to the script directly +ENTRYPOINT ["node", "patch.js"]