Initial
This commit is contained in:
24
Dockerfile
Normal file
24
Dockerfile
Normal file
@@ -0,0 +1,24 @@
|
||||
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 ""
|
||||
Reference in New Issue
Block a user