Spaces:
Build error
Build error
Download Dockerfile from mehdabdelkader/anycoder-199dccbb: direct link, hf CLI and curl.
- Browser
- Download file 331 Bytes
-
https://huggingface.co/spaces/mehdabdelkader/anycoder-199dccbb/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/mehdabdelkader/anycoder-199dccbb/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/mehdabdelkader/anycoder-199dccbb/resolve/main/Dockerfile
331 Bytes
| # Use official Node.js image | |
| FROM node:18-alpine | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy package files | |
| COPY package.json package-lock.json ./ | |
| # Install dependencies | |
| RUN npm install | |
| # Copy all files | |
| COPY . . | |
| # Build application | |
| RUN npm run build | |
| # Expose port 3000 | |
| EXPOSE 3000 | |
| # Start the application | |
| CMD ["npm", "start"] |