binary1ne commited on
Commit
9fc95ec
·
verified ·
1 Parent(s): 8c6f59d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 /opt/venv/bin/python -m ensurepip --upgrade && \
26
- /opt/venv/bin/pip3 install --upgrade pip uv playwright && \
27
- /opt/venv/bin/pip3 install -r requirements.txt && \
28
- /opt/venv/bin/playwright install --with-deps chromium
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