TomatoFull commited on
Commit
5cb0da7
1 Parent(s): 5017bdb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -28
Dockerfile CHANGED
@@ -1,34 +1,15 @@
1
  FROM ubuntu:latest
2
 
3
- RUN apt-get update && apt-get install -y wget python3 python3-pip
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
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"]