Update Dockerfile
Browse files- Dockerfile +6 -3
Dockerfile
CHANGED
@@ -32,8 +32,8 @@ RUN apt-get install -y google-chrome-stable
|
|
32 |
|
33 |
# install chromedriver
|
34 |
RUN apt-get install -yqq unzip
|
35 |
-
RUN wget -O /tmp/chromedriver.zip
|
36 |
-
RUN unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/
|
37 |
|
38 |
|
39 |
|
@@ -85,6 +85,9 @@ RUN mkdir -p /.ngrok2 && \
|
|
85 |
chown -R appuser:appuser /.ngrok2 && \
|
86 |
chmod -R 777 /.ngrok2
|
87 |
|
|
|
|
|
|
|
88 |
RUN apt-get update && \
|
89 |
apt-get install -y curl
|
90 |
|
@@ -124,4 +127,4 @@ RUN pip install gunicorn
|
|
124 |
# Start the Uvicorn server
|
125 |
# ENTRYPOINT ["python", "main.py"]
|
126 |
# CMD ["sh", "-c", "python main.py & sleep infinity"]
|
127 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
32 |
|
33 |
# install chromedriver
|
34 |
RUN apt-get install -yqq unzip
|
35 |
+
RUN wget -O /tmp/chromedriver-linux64.zip https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/linux64/chromedriver-linux64.zip
|
36 |
+
RUN unzip /tmp/chromedriver-linux64.zip chromedriver-linux64/chromedriver -d /usr/local/bin/
|
37 |
|
38 |
|
39 |
|
|
|
85 |
chown -R appuser:appuser /.ngrok2 && \
|
86 |
chmod -R 777 /.ngrok2
|
87 |
|
88 |
+
RUN mkdir /.local
|
89 |
+
RUN chmod -R 777 /.local
|
90 |
+
|
91 |
RUN apt-get update && \
|
92 |
apt-get install -y curl
|
93 |
|
|
|
127 |
# Start the Uvicorn server
|
128 |
# ENTRYPOINT ["python", "main.py"]
|
129 |
# CMD ["sh", "-c", "python main.py & sleep infinity"]
|
130 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860","--workers","6"]
|