Download Dockerfile from Spooker/webs: direct link, hf CLI and curl.
- Browser
- Download file 421 Bytes
-
https://huggingface.co/spaces/Spooker/webs/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Spooker/webs/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Spooker/webs/resolve/main/Dockerfile
421 Bytes
| # syntax=docker/dockerfile:1 | |
| FROM node:18-alpine | |
| WORKDIR /app | |
| COPY package*.json ./ | |
| RUN npm ci || npm install && npm cache clean --force | |
| COPY . . | |
| RUN npm run build | |
| RUN addgroup -g 1001 -S nodejs && \ | |
| adduser -S nodejs -u 1001 && \ | |
| chown -R nodejs:nodejs /app | |
| USER nodejs | |
| ENV NODE_ENV=production | |
| ENV MODE=http | |
| ENV PORT=3000 | |
| ENV ENABLE_CORS=true | |
| ENV CORS_ORIGIN=* | |
| EXPOSE 3000 | |
| CMD ["node", "build/index.js"] | |