KingNish commited on
Commit
4fdf1fb
·
verified ·
1 Parent(s): c8cbb1a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -9
Dockerfile CHANGED
@@ -1,15 +1,12 @@
1
- FROM python:3.9
2
 
3
  WORKDIR /app
4
 
5
- COPY . /app
6
-
7
- RUN apt-get update && \
8
- apt-get install -y chromium --no-install-recommends && \
9
- rm -rf /var/lib/apt/lists/*
10
 
11
- RUN pip install Flask eel requests
12
 
13
- EXPOSE 8080
14
 
15
- CMD ["python", "app.py"]
 
1
+ FROM python:3.8-slim
2
 
3
  WORKDIR /app
4
 
5
+ COPY requirements.txt ./requirements.txt
6
+ RUN pip install -r requirements.txt
 
 
 
7
 
8
+ COPY . /app
9
 
10
+ EXPOSE 5000
11
 
12
+ CMD ["flask", "run", "--host=0.0.0.0", "--port=5000"]