Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -4
Dockerfile
CHANGED
@@ -18,10 +18,13 @@ RUN add-apt-repository ppa:deadsnakes/ppa && apt-get update && apt-get install -
|
|
18 |
python3.10 \
|
19 |
python3.10-venv \
|
20 |
python3.10-dev \
|
21 |
-
|
22 |
--no-install-recommends && \
|
23 |
rm -rf /var/lib/apt/lists/*
|
24 |
|
|
|
|
|
|
|
25 |
# Install Chromium
|
26 |
RUN apt-get update && apt-get install -y \
|
27 |
chromium-browser \
|
@@ -35,8 +38,7 @@ WORKDIR /code
|
|
35 |
COPY ./requirements.txt /code/requirements.txt
|
36 |
|
37 |
# Install Python dependencies
|
38 |
-
RUN python3.10 -m pip install --no-cache-dir --upgrade
|
39 |
-
python3.10 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt && \
|
40 |
python3.10 -m pip install -U g4f[all] && \
|
41 |
python3.10 -m pip install -U g4f[webdriver]
|
42 |
|
@@ -44,4 +46,4 @@ RUN python3.10 -m pip install --no-cache-dir --upgrade pip && \
|
|
44 |
COPY . .
|
45 |
|
46 |
# Set the command to run the application
|
47 |
-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
18 |
python3.10 \
|
19 |
python3.10-venv \
|
20 |
python3.10-dev \
|
21 |
+
curl \
|
22 |
--no-install-recommends && \
|
23 |
rm -rf /var/lib/apt/lists/*
|
24 |
|
25 |
+
# Remove existing pip and install the latest version
|
26 |
+
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
|
27 |
+
|
28 |
# Install Chromium
|
29 |
RUN apt-get update && apt-get install -y \
|
30 |
chromium-browser \
|
|
|
38 |
COPY ./requirements.txt /code/requirements.txt
|
39 |
|
40 |
# Install Python dependencies
|
41 |
+
RUN python3.10 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt && \
|
|
|
42 |
python3.10 -m pip install -U g4f[all] && \
|
43 |
python3.10 -m pip install -U g4f[webdriver]
|
44 |
|
|
|
46 |
COPY . .
|
47 |
|
48 |
# Set the command to run the application
|
49 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|