Spaces:
Sleeping
Sleeping
Download Dockerfile from eunzzang/Deeplearning_Board: direct link, hf CLI and curl.
- Browser
- Download file 702 Bytes
-
https://huggingface.co/spaces/eunzzang/Deeplearning_Board/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/eunzzang/Deeplearning_Board/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/eunzzang/Deeplearning_Board/resolve/main/Dockerfile
702 Bytes
| FROM node:20-slim AS frontend | |
| WORKDIR /app/frontend | |
| COPY frontend/package*.json ./ | |
| RUN npm install | |
| COPY frontend/ ./ | |
| RUN npm run build | |
| FROM python:3.11-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PORT=7860 | |
| WORKDIR /app | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends libgl1 libglib2.0-0 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN python -m pip install --no-cache-dir --upgrade pip \ | |
| && python -m pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| COPY --from=frontend /app/frontend/dist ./frontend/dist | |
| CMD ["sh", "-c", "uvicorn backend.app.main:app --host 0.0.0.0 --port ${PORT:-7860}"] | |