Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -7
Dockerfile
CHANGED
@@ -27,8 +27,7 @@ RUN apt-get update && apt-get install -y \
|
|
27 |
libgtk-3-0 \
|
28 |
--no-install-recommends
|
29 |
|
30 |
-
|
31 |
-
# Install necessary packages
|
32 |
RUN apt-get update && \
|
33 |
apt-get install -y \
|
34 |
wget \
|
@@ -37,7 +36,8 @@ RUN apt-get update && \
|
|
37 |
xvfb \
|
38 |
libxi6 \
|
39 |
libgconf-2-4 \
|
40 |
-
|
|
|
41 |
&& rm -rf /var/lib/apt/lists/*
|
42 |
|
43 |
# Install Google Chrome
|
@@ -45,9 +45,6 @@ RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.d
|
|
45 |
apt-get install -y ./google-chrome-stable_current_amd64.deb && \
|
46 |
rm google-chrome-stable_current_amd64.deb
|
47 |
|
48 |
-
# Install Chromium
|
49 |
-
RUN snap install chromium
|
50 |
-
|
51 |
# Clean up APT when done
|
52 |
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
|
53 |
|
@@ -70,4 +67,4 @@ COPY --chown=user . /app
|
|
70 |
EXPOSE 7860
|
71 |
|
72 |
# Command to run the FastAPI application using xvfb-run
|
73 |
-
CMD ["xvfb-run", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
27 |
libgtk-3-0 \
|
28 |
--no-install-recommends
|
29 |
|
30 |
+
# Install necessary packages and dependencies
|
|
|
31 |
RUN apt-get update && \
|
32 |
apt-get install -y \
|
33 |
wget \
|
|
|
36 |
xvfb \
|
37 |
libxi6 \
|
38 |
libgconf-2-4 \
|
39 |
+
chromium \
|
40 |
+
fonts-liberation \
|
41 |
&& rm -rf /var/lib/apt/lists/*
|
42 |
|
43 |
# Install Google Chrome
|
|
|
45 |
apt-get install -y ./google-chrome-stable_current_amd64.deb && \
|
46 |
rm google-chrome-stable_current_amd64.deb
|
47 |
|
|
|
|
|
|
|
48 |
# Clean up APT when done
|
49 |
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
|
50 |
|
|
|
67 |
EXPOSE 7860
|
68 |
|
69 |
# Command to run the FastAPI application using xvfb-run
|
70 |
+
CMD ["xvfb-run", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|