Download Dockerfile from simhaa-hat/ai-learning-dashboard-api: direct link, hf CLI and curl.
- Browser
- Download file 449 Bytes
-
https://huggingface.co/spaces/simhaa-hat/ai-learning-dashboard-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/simhaa-hat/ai-learning-dashboard-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/simhaa-hat/ai-learning-dashboard-api/resolve/main/Dockerfile
449 Bytes
| FROM node:20-slim | |
| WORKDIR /app | |
| # Copy package files | |
| COPY package*.json ./ | |
| # Install all dependencies (including devDependencies for build) | |
| RUN npm ci | |
| # Copy source code | |
| COPY tsconfig.json ./ | |
| COPY src/ ./src/ | |
| # Build TypeScript | |
| RUN npx tsc | |
| # Remove devDependencies after build | |
| RUN npm prune --production | |
| # Hugging Face Spaces uses port 7860 | |
| ENV PORT=7860 | |
| ENV NODE_ENV=production | |
| EXPOSE 7860 | |
| # Start the server | |
| CMD ["node", "dist/server.js"] | |