feat: Dockerize

This commit is contained in:
Matthew Lopez 2024-06-03 22:01:46 -04:00
parent d4b2edd3f4
commit c2eec0ff19
No known key found for this signature in database
GPG Key ID: 302A6EE3D63B7E0E

11
Dockerfile Normal file
View File

@ -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"]