24 lines
550 B
Docker
24 lines
550 B
Docker
FROM ubuntu:20.04
|
|
|
|
ENV TERM linux
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
RUN apt-get update
|
|
RUN apt-get upgrade -y
|
|
RUN apt-get install -y python3-pip tor
|
|
RUN pip3 install --upgrade ulozto-downloader[auto-captcha]
|
|
|
|
RUN pip3 install fastapi uvicorn subprocess.run
|
|
|
|
RUN cd /opt/
|
|
RUN mkdir /path/
|
|
|
|
COPY api.py /opt/api.py
|
|
#CMD ["python3", "/opt/api.py"]
|
|
WORKDIR /opt/
|
|
ENTRYPOINT ["uvicorn", "api:app", "--reload" , "--host", "0.0.0.0", "--port", "8000"]
|
|
#ENTRYPOINT ["python3", /opt/api.py"]
|
|
#CMD ["/bin/bash"]
|
|
|
|
# cd /path/
|
|
# ulozto-downloader --parts 15 "" |