Neon-AI commited on
Commit
904d421
·
verified ·
1 Parent(s): 8572d9f

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ ENV PYTHONUNBUFFERED=1
4
+
5
+ RUN apt-get update && apt-get install -y \
6
+ wget curl gnupg ca-certificates \
7
+ libnss3 libatk1.0-0 libatk-bridge2.0-0 \
8
+ libcups2 libdrm2 libxkbcommon0 \
9
+ libxcomposite1 libxdamage1 libxrandr2 \
10
+ libgbm1 libasound2 libpangocairo-1.0-0 \
11
+ libxshmfence1 libgtk-3-0 fonts-liberation \
12
+ libappindicator3-1 xdg-utils \
13
+ --no-install-recommends && rm -rf /var/lib/apt/lists/*
14
+
15
+ # Python deps
16
+ RUN pip install --no-cache-dir playwright streamlit
17
+
18
+ # Install browser
19
+ RUN playwright install --with-deps
20
+
21
+ WORKDIR /app
22
+ COPY . .
23
+
24
+ EXPOSE 8501
25
+
26
+ CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]