Spaces:
Running
Running
File size: 796 Bytes
7eeb78f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
HOME=/tmp \
SETUPTOOLS_SCM_PRETEND_VERSION=2026.1.0
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends git ca-certificates && rm -rf /var/lib/apt/lists/*
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt
COPY . /app
RUN pip install --no-cache-dir --no-deps \
/app/real_github_repos/py-moneyed \
/app/real_github_repos/price-parser \
/app/real_github_repos/schwifty \
/app/real_github_repos/python-stdnum \
&& pip install --no-cache-dir typing_extensions attrs babel iso3166 pycountry rstr \
&& chmod -R a+rX /app
EXPOSE 7860
CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "7860"]
|