2023-05-21 19:33:10 -04:00
|
|
|
FROM python:3.11
|
|
|
|
WORKDIR /code
|
|
|
|
|
2024-03-24 04:40:36 -04:00
|
|
|
ENTRYPOINT ["uvicorn", "webcontrol:api", "--host", "0.0.0.0", "--port", "80"]
|
2024-03-24 04:52:37 -04:00
|
|
|
CMD ["--root-path", "/webcontrol", "--log-level", "warning"]
|
2023-05-21 19:33:10 -04:00
|
|
|
|
|
|
|
RUN pip3 install --upgrade pip
|
|
|
|
|
|
|
|
COPY requirements.txt .
|
|
|
|
RUN pip3 install -r requirements.txt
|
|
|
|
|
|
|
|
COPY src .
|