Spaces:
Running
Running
TomatoFull
commited on
Commit
•
5cb0da7
1
Parent(s):
5017bdb
Update Dockerfile
Browse files- Dockerfile +9 -28
Dockerfile
CHANGED
@@ -1,34 +1,15 @@
|
|
1 |
FROM ubuntu:latest
|
2 |
|
3 |
-
|
4 |
|
5 |
-
RUN
|
|
|
|
|
6 |
|
7 |
-
|
|
|
|
|
8 |
|
9 |
-
|
10 |
|
11 |
-
|
12 |
-
|
13 |
-
COPY <<EOF /app/app.py
|
14 |
-
from flask import Flask, send_file
|
15 |
-
|
16 |
-
app = Flask(__name__)
|
17 |
-
|
18 |
-
@app.route('/')
|
19 |
-
def index():
|
20 |
-
return '''
|
21 |
-
<h1>This Page is Under Developing..</h1>
|
22 |
-
'''
|
23 |
-
|
24 |
-
@app.route('/file')
|
25 |
-
def download_file():
|
26 |
-
return send_file("XFCE_64bit.7z", as_attachment=True)
|
27 |
-
|
28 |
-
if __name__ == "__main__":
|
29 |
-
app.run(host="0.0.0.0", port=7860)
|
30 |
-
EOF
|
31 |
-
|
32 |
-
EXPOSE 7860
|
33 |
-
|
34 |
-
CMD ["python3", "app.py"]
|
|
|
1 |
FROM ubuntu:latest
|
2 |
|
3 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
4 |
|
5 |
+
RUN apt-get update && apt-get install -y \
|
6 |
+
privoxy \
|
7 |
+
&& apt-get clean
|
8 |
|
9 |
+
RUN sed -i 's/^listen-address.*/listen-address 0.0.0.0:7680/' /etc/privoxy/config \
|
10 |
+
&& sed -i 's/^logfile.*/logfile \/dev\/stdout/' /etc/privoxy/config \
|
11 |
+
&& sed -i 's/^debug.*/debug 1/' /etc/privoxy/config
|
12 |
|
13 |
+
EXPOSE 7680
|
14 |
|
15 |
+
CMD ["privoxy", "--no-daemon", "/etc/privoxy/config"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|