Update Dockerfile
Browse files- Dockerfile +6 -4
Dockerfile
CHANGED
|
@@ -21,11 +21,13 @@ RUN uv venv /opt/venv --python 3.11
|
|
| 21 |
# Ensure world execute/read
|
| 22 |
RUN chmod -R a+rx /opt/venv && chmod -R a+r /opt/venv
|
| 23 |
|
|
|
|
|
|
|
| 24 |
# Install deps in /opt/venv
|
| 25 |
-
RUN
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
|
| 30 |
EXPOSE 7860
|
| 31 |
USER root
|
|
|
|
| 21 |
# Ensure world execute/read
|
| 22 |
RUN chmod -R a+rx /opt/venv && chmod -R a+r /opt/venv
|
| 23 |
|
| 24 |
+
RUN source /opt/venv/bin/activate
|
| 25 |
+
|
| 26 |
# Install deps in /opt/venv
|
| 27 |
+
RUN python3 -m ensurepip --upgrade && \
|
| 28 |
+
pip3 install --upgrade pip uv playwright && \
|
| 29 |
+
pip3 install -r requirements.txt && \
|
| 30 |
+
playwright install --with-deps chromium
|
| 31 |
|
| 32 |
EXPOSE 7860
|
| 33 |
USER root
|