Dockerfile 313 B

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