Spaces:
Configuration error
Configuration error
Download Dockerfile from letaken-com/Bot2: direct link, hf CLI and curl.
- Browser
- Download file 670 Bytes
-
https://huggingface.co/spaces/letaken-com/Bot2/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/letaken-com/Bot2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/letaken-com/Bot2/resolve/main/Dockerfile
670 Bytes
| # Use an official Python runtime as a base image | |
| FROM python:3.11.7-slim-bullseye | |
| # Install system dependencies required for building certain Python packages | |
| RUN apt-get update && apt-get upgrade -y && apt-get install -y \ | |
| gcc \ | |
| libmagic-dev \ | |
| ffmpeg \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Set the working directory in the container to /app | |
| WORKDIR /app | |
| RUN pip install poetry --no-cache-dir | |
| RUN poetry self add poetry-plugin-dotenv | |
| RUN poetry config virtualenvs.create false | |
| COPY pyproject.toml poetry.lock /app/ | |
| RUN poetry install --only main | |
| COPY . /app | |
| EXPOSE 8502 | |
| RUN mkdir -p /app/data | |
| CMD ["poetry", "run", "streamlit", "run", "app_home.py"] | |