Aissistant2 commited on
Commit
1c209e5
·
verified ·
1 Parent(s): bb6a1a6

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -5
Dockerfile CHANGED
@@ -1,10 +1,20 @@
1
- FROM mcr.microsoft.com/playwright/python:v1.52.0-jammy
2
 
3
- WORKDIR /app
 
 
 
 
 
 
 
 
 
 
 
4
 
 
5
  COPY app.py /app/app.py
6
 
7
  EXPOSE 7860
8
-
9
- ENTRYPOINT ["/usr/local/bin/python", "-u"]
10
- CMD ["app.py"]
 
1
+ FROM ubuntu:24.04
2
 
3
+ ENV DEBIAN_FRONTEND=noninteractive
4
+ RUN apt-get update && apt-get install -y python3 python3-pip wget gnupg2 \
5
+ && rm -rf /var/lib/apt/lists/*
6
+
7
+ # Install Chrome
8
+ RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
9
+ && echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list \
10
+ && apt-get update && apt-get install -y google-chrome-stable \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ RUN pip3 install --break-system-packages playwright
14
+ RUN playwright install chromium --with-deps || true
15
 
16
+ WORKDIR /app
17
  COPY app.py /app/app.py
18
 
19
  EXPOSE 7860
20
+ CMD ["python3", "app.py"]