feat: add webapi, lower python version requirement and add a Dockerfile
This commit is contained in:
+20
@@ -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" ]
|
||||
Reference in New Issue
Block a user