Spaces:
Running
Running
fix: reduce timeout
Browse files- Dockerfile +6 -7
Dockerfile
CHANGED
|
@@ -2,9 +2,7 @@ FROM python:alpine
|
|
| 2 |
|
| 3 |
RUN apk update
|
| 4 |
|
| 5 |
-
RUN apk
|
| 6 |
-
|
| 7 |
-
RUN apk add --no-cache ffmpeg mimalloc2 nginx py3-pillow
|
| 8 |
|
| 9 |
RUN mkdir -p /data /tmp/nginx-client-body /tmp/nginx-proxy /tmp/nginx-fastcgi /tmp/nginx-uwsgi /tmp/nginx-scgi
|
| 10 |
|
|
@@ -28,6 +26,7 @@ http {
|
|
| 28 |
default_type application/octet-stream;
|
| 29 |
|
| 30 |
client_max_body_size 0;
|
|
|
|
| 31 |
access_log /dev/stdout;
|
| 32 |
error_log /dev/stderr warn;
|
| 33 |
sendfile on;
|
|
@@ -84,12 +83,12 @@ http {
|
|
| 84 |
}
|
| 85 |
|
| 86 |
proxy_buffering off;
|
| 87 |
-
proxy_connect_timeout
|
| 88 |
proxy_http_version 1.1;
|
| 89 |
proxy_pass http://127.0.0.1:3923;
|
| 90 |
-
proxy_read_timeout
|
| 91 |
proxy_request_buffering off;
|
| 92 |
-
proxy_send_timeout
|
| 93 |
proxy_set_header Connection $connection_upgrade;
|
| 94 |
proxy_set_header Host $host;
|
| 95 |
proxy_set_header Upgrade $http_upgrade;
|
|
@@ -145,7 +144,7 @@ cat > /root/app/copyparty.conf <<EOF_CONFIG
|
|
| 145 |
A: admin
|
| 146 |
EOF_CONFIG
|
| 147 |
|
| 148 |
-
python -m copyparty -c /root/app/copyparty.conf &
|
| 149 |
COPYPARTY_PID=$!
|
| 150 |
|
| 151 |
nginx -g "daemon off;" &
|
|
|
|
| 2 |
|
| 3 |
RUN apk update
|
| 4 |
|
| 5 |
+
RUN apk add --no-cache ffmpeg mimalloc2 nginx py3-pillow curl
|
|
|
|
|
|
|
| 6 |
|
| 7 |
RUN mkdir -p /data /tmp/nginx-client-body /tmp/nginx-proxy /tmp/nginx-fastcgi /tmp/nginx-uwsgi /tmp/nginx-scgi
|
| 8 |
|
|
|
|
| 26 |
default_type application/octet-stream;
|
| 27 |
|
| 28 |
client_max_body_size 0;
|
| 29 |
+
|
| 30 |
access_log /dev/stdout;
|
| 31 |
error_log /dev/stderr warn;
|
| 32 |
sendfile on;
|
|
|
|
| 83 |
}
|
| 84 |
|
| 85 |
proxy_buffering off;
|
| 86 |
+
proxy_connect_timeout 60s;
|
| 87 |
proxy_http_version 1.1;
|
| 88 |
proxy_pass http://127.0.0.1:3923;
|
| 89 |
+
proxy_read_timeout 60s;
|
| 90 |
proxy_request_buffering off;
|
| 91 |
+
proxy_send_timeout 60s;
|
| 92 |
proxy_set_header Connection $connection_upgrade;
|
| 93 |
proxy_set_header Host $host;
|
| 94 |
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
| 144 |
A: admin
|
| 145 |
EOF_CONFIG
|
| 146 |
|
| 147 |
+
python -m copyparty -c /root/app/copyparty.conf -p 3923 &
|
| 148 |
COPYPARTY_PID=$!
|
| 149 |
|
| 150 |
nginx -g "daemon off;" &
|