add docker

This commit is contained in:
ge
2023-02-19 22:03:19 +03:00
parent 44158c15a5
commit 743f272072
4 changed files with 111 additions and 2 deletions

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM alpine:latest
RUN apk update && apk add --no-cache python3 py3-pip
RUN mkdir -p /opt/ydl_web_ui
ADD requirements.txt web_ui/ /opt/ydl_web_ui
WORKDIR /opt/ydl_web_ui
RUN pip install --disable-pip-version-check --requirement requirements.txt
RUN pip install --disable-pip-version-check gunicorn
EXPOSE 3000
USER nobody
ENV YDL_API_HOST=
CMD gunicorn router:app --bind :3000