BeamBridge / Dockerfile
ql6's picture
Publish BeamBridge v2 Platform + Full Python Source & Empirical Ledger
7eeb78f verified
Raw History Blame Contribute Delete
796 Bytes
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"]