yasir68 commited on
Commit
9d8dfd9
1 Parent(s): e34909b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -4
Dockerfile CHANGED
@@ -1,13 +1,16 @@
1
- FROM python:3.10
2
 
3
- WORKDIR /app
4
 
5
  COPY requirements.txt requirements.txt
6
 
7
  RUN pip3 install --upgrade pip setuptools wheel
8
  RUN pip3 install --no-warn-script-location --no-cache-dir -r requirements.txt
 
9
 
10
  COPY . .
 
 
 
11
 
12
- ENTRYPOINT ["python3", "main.py"]
13
- CMD ["-a", "2"]
 
1
+ FROM python:3.10.11-alpine3.18
2
 
3
+ WORKDIR app/
4
 
5
  COPY requirements.txt requirements.txt
6
 
7
  RUN pip3 install --upgrade pip setuptools wheel
8
  RUN pip3 install --no-warn-script-location --no-cache-dir -r requirements.txt
9
+ RUN pip install Flask
10
 
11
  COPY . .
12
+ RUN mkdir -p /app/sessions && \
13
+ chmod -R 777 /app/sessions
14
+ RUN chmod 777 /app
15
 
16
+ CMD ["python3", "app.py"]