Spaces:
Sleeping
Sleeping
Download Dockerfile from Proxytest0987/LearningLink3: direct link, hf CLI and curl.
- Browser
- Download file 315 Bytes
-
https://huggingface.co/spaces/Proxytest0987/LearningLink3/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Proxytest0987/LearningLink3/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Proxytest0987/LearningLink3/resolve/main/Dockerfile
315 Bytes
| # Node 20 + 最小サイズ | |
| FROM node:20-alpine | |
| WORKDIR /app | |
| COPY package.json package-lock.json* ./ | |
| RUN npm ci --omit=dev || npm install --production | |
| COPY . . | |
| ENV NODE_ENV=production | |
| # Spaces 既定ポートは 7860(PORT が与えられるのでそれを優先) | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["npm","start"] |