Spaces:
Running

get / Dockerfile
Sean Hayes
Deploy Dogg Index app
a8dfb66
Raw History Blame Contribute Delete
476 Bytes
FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV PORT=7860
ENV HOST=0.0.0.0
ENV MPLCONFIGDIR=/tmp/matplotlib
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 pip install --no-cache-dir -r requirements.txt
COPY public ./public
COPY src ./src
COPY models ./models
COPY server.py .
EXPOSE 7860
CMD ["python", "server.py"]