feat: add webapi, lower python version requirement and add a Dockerfile

This commit is contained in:
2025-03-12 10:52:11 +01:00
parent 31da987f81
commit 488b2316f0
7 changed files with 1194 additions and 6 deletions
+20
View File
@@ -0,0 +1,20 @@
FROM python:3.11
RUN install -o www-data -g www-data -d -m 0755 /var/www
USER www-data
RUN curl -sSL https://install.python-poetry.org | python3 -
ENV PATH=/var/www/.local/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
COPY README.md pyproject.toml poetry.lock docker-entrypoint.sh index.html /var/www/
COPY myice /var/www/myice
WORKDIR /var/www
RUN poetry install && . $(poetry env info -p)
EXPOSE 8000
ENTRYPOINT [ "/var/www/docker-entrypoint.sh" ]