TomatoFull commited on
Commit
f35d02f
·
verified ·
1 Parent(s): a4ec102

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +32 -0
Dockerfile ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+
7
+ WORKDIR /app
8
+
9
+ RUN pip install Flask
10
+
11
+ COPY <<EOF /app/app.py
12
+ from flask import Flask, send_file
13
+
14
+ app = Flask(__name__)
15
+
16
+ @app.route('/')
17
+ def index():
18
+ return '''
19
+ <h1>This Page Is Under Developing..</h1>
20
+ '''
21
+
22
+ @app.route('/file')
23
+ def download_file():
24
+ return send_file("XFCE_64bit.7z", as_attachment=True)
25
+
26
+ if __name__ == "__main__":
27
+ app.run(host="0.0.0.0", port=7860)
28
+ EOF
29
+
30
+ EXPOSE 7860
31
+
32
+ CMD ["python", "app.py"]