2022-11-18 16:51:24 +00:00
|
|
|
FROM python:3.11
|
2023-07-06 15:36:55 +00:00
|
|
|
ADD https://github.com/krallin/tini/releases/download/v0.19.0/tini /tini
|
|
|
|
RUN chmod +x /tini
|
|
|
|
ENTRYPOINT ["/tini", "--"]
|
2022-11-18 16:51:24 +00:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
2022-12-03 12:51:33 +00:00
|
|
|
RUN --mount=type=cache,target=/tmp/pip pip install . --cache-dir /tmp/pip
|
2022-11-18 16:51:24 +00:00
|
|
|
|
2023-07-06 15:36:55 +00:00
|
|
|
CMD python3 -m uvicorn customiwmserver.main:app --host 0.0.0.0 --port 8001 --reload
|