Spaces:
Sleeping
Sleeping
Cursor
fix(docker): copy public/ into runner stage so images and videos are served
4b01705 unverified Download Dockerfile from blackbeedrones/ai-learning: direct link, hf CLI and curl.
- Browser
- Download file 559 Bytes
-
https://huggingface.co/spaces/blackbeedrones/ai-learning/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/blackbeedrones/ai-learning/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/blackbeedrones/ai-learning/resolve/main/Dockerfile
559 Bytes
| # syntax=docker/dockerfile:1.6 | |
| FROM node:20-slim AS builder | |
| WORKDIR /app | |
| COPY package*.json ./ | |
| RUN npm ci | |
| COPY . . | |
| ENV NEXT_TELEMETRY_DISABLED=1 | |
| RUN npm run build | |
| FROM node:20-slim AS runner | |
| WORKDIR /app | |
| COPY --from=builder --chown=node:node /app/.next/standalone ./ | |
| COPY --from=builder --chown=node:node /app/.next/static ./.next/static | |
| COPY --from=builder --chown=node:node /app/public ./public | |
| USER node | |
| ENV NODE_ENV=production | |
| ENV NEXT_TELEMETRY_DISABLED=1 | |
| ENV PORT=7860 | |
| ENV HOSTNAME=0.0.0.0 | |
| EXPOSE 7860 | |
| CMD ["node", "server.js"] | |