CustomIWMServer/Dockerfile

12 lines
320 B
Docker

FROM python:3.11
ADD https://github.com/krallin/tini/releases/download/v0.19.0/tini /tini
RUN chmod +x /tini
ENTRYPOINT ["/tini", "--"]
WORKDIR /app
COPY . .
RUN --mount=type=cache,target=/tmp/pip pip install . --cache-dir /tmp/pip
CMD python3 -m uvicorn customiwmserver.main:app --host 0.0.0.0 --port 8001 --reload