Spaces:
Sleeping
Sleeping
Download Dockerfile from Suchinthana/docker_c: direct link, hf CLI and curl.
- Browser
- Download file 530 Bytes
-
https://huggingface.co/spaces/Suchinthana/docker_c/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Suchinthana/docker_c/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Suchinthana/docker_c/resolve/main/Dockerfile
530 Bytes
| # Use lightweight Python image | |
| FROM python:3.11-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Install system dependencies (optional but safe for pandas) | |
| RUN apt-get update && apt-get install -y \ | |
| gcc \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy only requirements first (better layer caching) | |
| COPY requirements.txt . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application files | |
| COPY . . | |
| # Expose ports | |
| EXPOSE 4840 | |
| EXPOSE 7860 | |
| # Run the app | |
| CMD ["python", "csv_opcua_server.py"] | |