Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
|
@@ -38,6 +38,9 @@ WORKDIR /app
|
|
| 38 |
# Copy the project's requirements file into the container.
|
| 39 |
RUN cp /tmp/gpt4free/requirements.txt /app/
|
| 40 |
|
|
|
|
|
|
|
|
|
|
| 41 |
# Upgrade pip for the latest features and install the project's Python dependencies.
|
| 42 |
RUN pip install --upgrade pip && pip install -r requirements.txt
|
| 43 |
|
|
@@ -46,7 +49,6 @@ RUN cp -r /tmp/gpt4free/g4f /app/g4f
|
|
| 46 |
|
| 47 |
RUN chmod a+x /usr/bin/chromedriver
|
| 48 |
|
| 49 |
-
|
| 50 |
-
RUN mkdir /home/seluser/.local/lib && chmod 777 /home/seluser/.local/lib
|
| 51 |
# Expose ports
|
| 52 |
EXPOSE 80 1337
|
|
|
|
| 38 |
# Copy the project's requirements file into the container.
|
| 39 |
RUN cp /tmp/gpt4free/requirements.txt /app/
|
| 40 |
|
| 41 |
+
RUN mkdir /home/seluser/.local/share/undetected_chromedriver && chmod 777 /home/seluser/.local/share/undetected_chromedriver
|
| 42 |
+
RUN mkdir /home/seluser/.local/lib && chmod 777 /home/seluser/.local/lib
|
| 43 |
+
|
| 44 |
# Upgrade pip for the latest features and install the project's Python dependencies.
|
| 45 |
RUN pip install --upgrade pip && pip install -r requirements.txt
|
| 46 |
|
|
|
|
| 49 |
|
| 50 |
RUN chmod a+x /usr/bin/chromedriver
|
| 51 |
|
| 52 |
+
|
|
|
|
| 53 |
# Expose ports
|
| 54 |
EXPOSE 80 1337
|