Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -6,7 +6,7 @@ RUN pip install cloudscraper Flask && \
|
|
6 |
apt-get install -y nodejs libnode108 && \
|
7 |
rm -rf /var/lib/apt/lists/*
|
8 |
|
9 |
-
RUN /bin/bash -c
|
10 |
from flask import Flask, request, Response
|
11 |
import cloudscraper
|
12 |
scraper = cloudscraper.create_scraper(interpreter='nodejs')
|
@@ -60,7 +60,7 @@ def cf(url=""):
|
|
60 |
if __name__ == '__main__':
|
61 |
app.run(host='0.0.0.0', port=7860)
|
62 |
|
63 |
-
EOF
|
64 |
|
65 |
#COPY proxy.py /proxy.py
|
66 |
CMD python /proxy.py
|
|
|
6 |
apt-get install -y nodejs libnode108 && \
|
7 |
rm -rf /var/lib/apt/lists/*
|
8 |
|
9 |
+
RUN /bin/bash -c "cat <<EOF > /proxy.py
|
10 |
from flask import Flask, request, Response
|
11 |
import cloudscraper
|
12 |
scraper = cloudscraper.create_scraper(interpreter='nodejs')
|
|
|
60 |
if __name__ == '__main__':
|
61 |
app.run(host='0.0.0.0', port=7860)
|
62 |
|
63 |
+
EOF"
|
64 |
|
65 |
#COPY proxy.py /proxy.py
|
66 |
CMD python /proxy.py
|