mirror of
https://github.com/PretendoNetwork/SSSL.git
synced 2026-08-20 09:54:03 -05:00
feat: Dockerize
This commit is contained in:
11
Dockerfile
Normal file
11
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user