Neon-AI commited on
Commit
febd91d
·
verified ·
1 Parent(s): a1edc15

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -22
Dockerfile CHANGED
@@ -1,28 +1,10 @@
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
- ENV STREAMLIT_EMAIL=""
13
- ENV STREAMLIT_AUTOMATION=true
14
 
15
  WORKDIR /app
16
 
17
- COPY requirements.txt .
18
- RUN pip install --no-cache-dir -r requirements.txt
19
 
20
  COPY . .
21
 
22
- EXPOSE 8501
23
- # Prevent Streamlit from asking for email on first run
24
- ENV STREAMLIT_EMAIL=""
25
- ENV STREAMLIT_AUTOMATION=true
26
-
27
- # Run your app
28
- CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.headless=true"]
 
1
+ FROM mcr.microsoft.com/playwright:v1.49.0-noble
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  WORKDIR /app
4
 
5
+ COPY package*.json ./
6
+ RUN npm install
7
 
8
  COPY . .
9
 
10
+ CMD ["node", "index.js"]