Spaces:
Running
Running
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:20-alpine AS build | |
| WORKDIR /app | |
| COPY . . | |
| RUN npm ci | |
| RUN npm run build | |
| FROM node:20-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"] |