FROM python:3.12.4-alpine
RUN --mount=source=dist,target=/dist PYTHONDONTWRITEBYTECODE=1 \
    pip install --no-cache-dir --disable-pip-version-check /dist/*.whl
CMD [ "uvicorn", "rural_dict.__main__:app", "--no-access-log", "--proxy-headers", \
    "--forwarded-allow-ips", "*", "--host", "0.0.0.0", "--port", "5758" ]