added dockerfile and removed cxfreeze from web_monitor requirements due to it breaking the docker setup

This commit is contained in:
UpstreamData
2022-03-08 09:09:28 -07:00
parent 7e91fe12e7
commit 7ba8044564
7 changed files with 40 additions and 4 deletions

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM python:3.10-slim-buster
EXPOSE 80
WORKDIR /minerInterface-web_monitor
COPY tools/web_monitor/requirements.txt .
RUN pip install --no-cache-dir --upgrade -r requirements.txt
COPY . .
CMD ["uvicorn", "tools.web_monitor.app:app", "--host", "0.0.0.0", "--port", "80"]