Spaces:
Sleeping
Sleeping
Download Dockerfile from Pavankumardns/chatdocs: direct link, hf CLI and curl.
- Browser
- Download file 744 Bytes
-
https://huggingface.co/spaces/Pavankumardns/chatdocs/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Pavankumardns/chatdocs/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Pavankumardns/chatdocs/resolve/main/Dockerfile
744 Bytes
| FROM python:3.9-slim | |
| # Install Node.js | |
| RUN apt-get update && apt-get install -y curl && \ | |
| curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \ | |
| apt-get install -y nodejs && \ | |
| apt-get clean && rm -rf /var/lib/apt/lists/* | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy package.json and package-lock.json (if available) | |
| COPY package*.json ./ | |
| # Install Node.js dependencies | |
| RUN npm install | |
| # Copy the rest of the application code | |
| COPY . . | |
| # Build the frontend | |
| RUN npm run build | |
| # Install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Set environment variable for port | |
| ENV PORT=7860 | |
| # Expose the port | |
| EXPOSE 7860 | |
| # Command to run the application | |
| CMD ["python", "app.py"] |