Neon-AI commited on
Commit
c6d5261
·
verified ·
1 Parent(s): 717ce20

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -8
Dockerfile CHANGED
@@ -1,18 +1,20 @@
1
- # Use the latest Playwright image
2
- FROM mcr.microsoft.com/playwright:v1.58.2-jammy
 
 
 
 
 
 
 
 
3
 
4
- # Set working directory
5
  WORKDIR /app
6
 
7
- # Copy requirements and install Python packages
8
  COPY requirements.txt .
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
- # Copy the Streamlit app code
12
  COPY . .
13
 
14
- # Expose Streamlit port
15
  EXPOSE 8501
16
-
17
- # Start Streamlit
18
  CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.headless=false"]
 
1
+ # Python base image
2
+ FROM python:3.12-slim
3
+
4
+ # Install Node.js (needed for Playwright)
5
+ RUN apt-get update && \
6
+ apt-get install -y curl gnupg && \
7
+ curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
8
+ apt-get install -y nodejs && \
9
+ npm install -g playwright && \
10
+ playwright install
11
 
 
12
  WORKDIR /app
13
 
 
14
  COPY requirements.txt .
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
 
17
  COPY . .
18
 
 
19
  EXPOSE 8501
 
 
20
  CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.headless=false"]