-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
49 lines (34 loc) · 1.62 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -qq update && apt-get -qq upgrade -y
RUN apt-get -qq update && apt-get install -qq -y \
jq unzip tar fail2ban curl wget gawk sed vim tree \
transmission-daemon nodejs npm && \
rm -rf /var/lib/apt/lists/*
RUN useradd -ms /bin/bash kingofthenorth
VOLUME [ "/home/kingofthenorth/" ]
VOLUME [ "/kingofthenorth/" ]
COPY ./files/rvn_init /usr/local/bin/raven_init
COPY ./files/raven_status /usr/local/bin/raven_status
COPY ./files/entrypoint /usr/local/bin/entrypoint
ENV TAG latest
# Setup raven init script
RUN chmod +x /usr/local/bin/raven_init && \
/usr/local/bin/raven_init install_rvn
RUN chmod +x /usr/local/bin/raven_status
RUN chmod +x /usr/local/bin/entrypoint
COPY --chown=kingofthenorth:kingofthenorth ./files/raven.conf /home/kingofthenorth/.raven/
# Setup transmission-client
RUN mkdir -p /home/kingofthenorth/.config/transmission-daemon/seeding
COPY --chown=kingofthenorth:kingofthenorth ./files/transmission.settings.json /home/kingofthenorth/.config/transmission-daemon/settings.json
COPY --chown=kingofthenorth:kingofthenorth ./files/rvn-bootstrap.md5 /home/kingofthenorth/.config/transmission-daemon/seeding/
COPY --chown=kingofthenorth:kingofthenorth ./files/rvn-bootstrap*.tar.gz.torrent /home/kingofthenorth/.config/transmission-daemon/seeding/
# Setup nodejs app
COPY --chown=kingofthenorth:kingofthenorth ./rvn-node-frontend-docker /home/kingofthenorth/nodejs-app/
#USER kingofthenorth
WORKDIR /home/kingofthenorth
EXPOSE 38767
EXPOSE 31413/tcp
EXPOSE 31413/udp
EXPOSE 8080
ENTRYPOINT /usr/local/bin/entrypoint "/usr/local/bin/raven_init init"