Spaces:
Runtime error
Runtime error
Download Dockerfile from tecnosilf/tecenosilf: direct link, hf CLI and curl.
- Browser
- Download file 456 Bytes
-
https://huggingface.co/spaces/tecnosilf/tecenosilf/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/tecnosilf/tecenosilf/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/tecnosilf/tecenosilf/resolve/main/Dockerfile
456 Bytes
| # Use Node.js 20 as the base image | |
| FROM node:20-slim | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy package.json and package-lock.json (if exists) | |
| COPY package*.json ./ | |
| # Install dependencies | |
| RUN npm install | |
| # Copy the rest of the application code | |
| COPY . . | |
| # Build the frontend | |
| RUN npm run build | |
| # Expose the port the app runs on | |
| EXPOSE 3000 | |
| # Set environment variable to production | |
| ENV NODE_ENV=production | |
| # Start the server | |
| CMD ["npm", "start"] | |