Spaces:
Running
Running
cfahlgren1 HF Staff
move base images to node:22-alpine to fix cve-2026-111497 (node 20 eol brotli rce)
4788b81 Download Dockerfile from cfahlgren1/sql-snippets: direct link, hf CLI and curl.
- Browser
- Download file 324 Bytes
-
https://huggingface.co/spaces/cfahlgren1/sql-snippets/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/cfahlgren1/sql-snippets/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/cfahlgren1/sql-snippets/resolve/main/Dockerfile
324 Bytes
| FROM node:22-alpine AS build | |
| WORKDIR /app | |
| COPY . . | |
| RUN npm ci | |
| RUN npm run build | |
| FROM node:22-alpine AS run | |
| WORKDIR /app | |
| COPY --from=build /app/package.json . | |
| COPY --from=build /app/package-lock.json . | |
| COPY --from=build /app/build ./build | |
| RUN npm ci --production | |
| USER node | |
| EXPOSE 3000 | |
| CMD ["node", "./build/index.js"] |