maylinejix commited on
Commit
0011127
·
verified ·
1 Parent(s): 9d8ea9a

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ RUN apt-get update && apt-get install -y \
4
+ wget \
5
+ gnupg \
6
+ unzip \
7
+ curl \
8
+ && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
9
+ && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' \
10
+ && apt-get update \
11
+ && apt-get install -y google-chrome-stable \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
+ WORKDIR /app
15
+
16
+ COPY requirements.txt .
17
+ RUN pip install --no-cache-dir -r requirements.txt
18
+
19
+ COPY app.py .
20
+
21
+ RUN mkdir -p public
22
+
23
+ EXPOSE 7860
24
+
25
+ CMD ["python", "app.py"]