TomatoFull commited on
Commit
0ede7b1
1 Parent(s): eeeb6a9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -6
Dockerfile CHANGED
@@ -1,12 +1,14 @@
1
- FROM python:3.9-slim
2
 
3
- RUN apt-get update && apt-get install -y wget
4
 
5
- RUN wget -c -t 0 --no-check-certificate --limit-rate=0 -O /app/XFCE_64bit.7z "https://sourceforge.net/projects/osboxes/files/v/vb/4-Ar---c-x/20240601/XFCE/64bit.7z/download"
6
  RUN mkdir -p /app
 
7
  WORKDIR /app
8
 
9
- RUN pip install Flask
 
 
10
 
11
  COPY <<EOF /app/app.py
12
  from flask import Flask, send_file
@@ -16,7 +18,7 @@ app = Flask(__name__)
16
  @app.route('/')
17
  def index():
18
  return '''
19
- <h1>This Page Is Under Developing..</h1>
20
  '''
21
 
22
  @app.route('/file')
@@ -29,4 +31,4 @@ EOF
29
 
30
  EXPOSE 7860
31
 
32
- CMD ["python", "app.py"]
 
1
+ FROM ubuntu:latest
2
 
3
+ RUN apt-get update && apt-get install -y wget python3-pip python3
4
 
 
5
  RUN mkdir -p /app
6
+
7
  WORKDIR /app
8
 
9
+ RUN wget -c -t 0 --no-check-certificate --limit-rate=0 -O /app/XFCE_64bit.7z "https://sourceforge.net/projects/osboxes/files/v/vb/4-Ar---c-x/20240601/XFCE/64bit.7z/download"
10
+
11
+ RUN pip3 install Flask --break-system-packages
12
 
13
  COPY <<EOF /app/app.py
14
  from flask import Flask, send_file
 
18
  @app.route('/')
19
  def index():
20
  return '''
21
+ <h1>This Page is Under Developing..</h1>
22
  '''
23
 
24
  @app.route('/file')
 
31
 
32
  EXPOSE 7860
33
 
34
+ CMD ["python3", "app.py"]