-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
38 lines (26 loc) · 1010 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM python:3.9-bullseye
MAINTAINER overbyrn
ARG S6_VER="3.1.2.1"
ARG S6_ARCH="x86_64"
ENV S6_LOGGING 0
ENV S6_KEEP_ENV 1
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS 2
RUN DEBIAN_FRONTEND=noninteractive apt update && \
apt install -y tar git htop iftop vim tzdata rdfind symlinks detox
RUN pip3 install git+https://github.com/aliparlakci/bulk-downloader-for-reddit.git@development
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_VER}/s6-overlay-noarch.tar.xz /tmp
RUN tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_VER}/s6-overlay-${S6_ARCH}.tar.xz /tmp
RUN tar -C / -Jxpf /tmp/s6-overlay-${S6_ARCH}.tar.xz
COPY ./etc/ /etc/
RUN mkdir /app
COPY ./app/wrapper.sh /app/wrapper.sh
RUN chmod +x /app/wrapper.sh
RUN mkdir /config
COPY default_config.cfg /app/default_config.cfg
COPY options.yaml.example /app/options.yaml.example
WORKDIR /config
VOLUME /config
VOLUME /downloads
EXPOSE 7634
ENTRYPOINT ["/init"]