-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (26 loc) · 1.03 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
FROM archlinux:latest
MAINTAINER uxodb
USER root
RUN pacman -Syu base-devel --noconfirm
RUN useradd -m irssi
RUN echo "irssi ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
USER irssi
WORKDIR /home/irssi
RUN sudo pacman -S irssi --noconfirm
RUN curl -L -O https://aur.archlinux.org/cgit/aur.git/snapshot/autodl-irssi-community.tar.gz
RUN tar -xf autodl-irssi-community.tar.gz
WORKDIR /home/irssi/autodl-irssi-community
RUN makepkg -s -c --noconfirm autodl-irssi-community.install
RUN sudo pacman -U *pkg.tar.zst --noconfirm
WORKDIR /home/irssi
RUN curl -L -O https://github.com/autodl-community/autodl-trackers/archive/refs/tags/v284.tar.gz
RUN tar -xvf v284.tar.gz
RUN mkdir ~/watchdir
RUN mkdir -p ~/.irssi/scripts/autorun
RUN mkdir ~/.autodl
RUN touch ~/.autodl/autodl.cfg
RUN ln -s /usr/share/autodl-irssi/autodl-irssi.pl ~/.irssi/scripts/autorun/autodl-irssi.pl
RUN cp -R /usr/share/autodl-irssi/AutodlIrssi/ ~/.irssi/scripts/
RUN mv ~/autodl-trackers-284/trackers ~/.irssi/scripts/AutodlIrssi/
RUN rm -rf autodl* *tar.gz
ENV TERM=xterm-256color