This commit is contained in:
parent
917060c091
commit
b998b9bc3f
18
Dockerfile
18
Dockerfile
|
@ -1,15 +1,13 @@
|
||||||
FROM debian:testing-slim
|
FROM alpine:edge
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories \
|
||||||
&& apt-get -y install --no-install-recommends runit \
|
&& apk add --no-cache \
|
||||||
&& apt-get -y install \
|
deluge \
|
||||||
deluge-console \
|
|
||||||
deluge-web \
|
|
||||||
deluged \
|
|
||||||
git \
|
git \
|
||||||
gosu \
|
nginx \
|
||||||
nginx-light \
|
py3-pip \
|
||||||
python3-pip \
|
runit \
|
||||||
|
su-exec \
|
||||||
tini
|
tini
|
||||||
|
|
||||||
RUN git clone --depth=1 https://github.com/tobbez/deluge_exporter /opt/deluge_exporter \
|
RUN git clone --depth=1 https://github.com/tobbez/deluge_exporter /opt/deluge_exporter \
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -u
|
set -u
|
||||||
adduser -q --gecos '' --disabled-password --uid $PUID deluge
|
adduser -D -u $PUID deluge
|
||||||
chown deluge:deluge /download/ /config/
|
chown deluge:deluge /download/ /config/
|
||||||
exec tini -- runsvdir /etc/service/
|
exec tini -- runsvdir /etc/service/
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# vim: set et sts=4 sw=4 ts=4:
|
# vim: set et sts=4 sw=4 ts=4:
|
||||||
user www-data;
|
user nginx;
|
||||||
worker_processes auto;
|
worker_processes auto;
|
||||||
pid /run/nginx.pid;
|
pid /run/nginx.pid;
|
||||||
|
|
||||||
|
@ -20,6 +20,8 @@ http {
|
||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
|
|
||||||
client_max_body_size 32M;
|
client_max_body_size 32M;
|
||||||
|
client_body_buffer_size 32M;
|
||||||
|
proxy_max_temp_file_size 0;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen unix:/var/run/nginx.sock;
|
listen unix:/var/run/nginx.sock;
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
gosu deluge deluge-web -d -c /config
|
su-exec deluge deluge-web -d -c /config
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
DELUGE_CONFIG_DIR=/config/ gosu deluge /opt/deluge_exporter/deluge_exporter.py
|
DELUGE_CONFIG_DIR=/config/ su-exec deluge /opt/deluge_exporter/deluge_exporter.py
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
gosu deluge deluged -d -c /config
|
su-exec deluge deluged -d -c /config
|
||||||
|
|
Reference in a new issue