Spaces:
Runtime error
Runtime error
sd
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
|
@@ -28,11 +28,11 @@ RUN apt-get update && apt-get install -y wget unzip && \
|
|
| 28 |
rm google-chrome-stable_current_amd64.deb && \
|
| 29 |
apt-get clean
|
| 30 |
|
| 31 |
-
# Update the package list and install wget, unzip, and Firefox
|
| 32 |
# RUN apt-get update && apt-get install -y wget unzip \
|
| 33 |
# && apt-get install -y firefox-esr \
|
| 34 |
# && apt-get clean
|
| 35 |
-
|
| 36 |
RUN useradd -m -u 1000 user
|
| 37 |
USER user
|
| 38 |
ENV HOME=/home/user \
|
|
@@ -48,5 +48,4 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 48 |
|
| 49 |
# Run the Selenium script
|
| 50 |
# CMD ["gunicorn", "-b", "0.0.0.0:7860","app:app"]
|
| 51 |
-
|
| 52 |
-
CMD python app.py
|
|
|
|
| 28 |
rm google-chrome-stable_current_amd64.deb && \
|
| 29 |
apt-get clean
|
| 30 |
|
| 31 |
+
# # Update the package list and install wget, unzip, and Firefox
|
| 32 |
# RUN apt-get update && apt-get install -y wget unzip \
|
| 33 |
# && apt-get install -y firefox-esr \
|
| 34 |
# && apt-get clean
|
| 35 |
+
RUN which google-chrome
|
| 36 |
RUN useradd -m -u 1000 user
|
| 37 |
USER user
|
| 38 |
ENV HOME=/home/user \
|
|
|
|
| 48 |
|
| 49 |
# Run the Selenium script
|
| 50 |
# CMD ["gunicorn", "-b", "0.0.0.0:7860","app:app"]
|
| 51 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|