mirror of
https://github.com/pragma-/pbot.git
synced 2025-12-13 04:07:27 +01:00
Re-shuffled the dockerfile a bit.
This commit is contained in:
parent
3642bbdd22
commit
88fbe30945
18
Dockerfile
18
Dockerfile
@ -1,21 +1,21 @@
|
|||||||
FROM perl:5.34
|
FROM perl:5.34
|
||||||
|
|
||||||
# Install system dependencies.
|
# Install major dependencies.
|
||||||
RUN apt-get update && apt-get install -y libssl-dev libexpat1-dev zlib1g libdbd-sqlite3-perl cpanminus wamerican pip
|
RUN apt-get update && apt-get install -y libssl-dev libexpat1-dev zlib1g libdbd-sqlite3-perl cpanminus wamerican pip
|
||||||
|
# Enable contrib packages.
|
||||||
|
RUN apt-get install -y software-properties-common && apt-add-repository contrib && apt-get update
|
||||||
|
# Translate shell.
|
||||||
|
RUN apt-get install -y libfribidi0 libfribidi-bin gawk libsigsegv2 translate-shell
|
||||||
|
|
||||||
# Prefer a non-root user.
|
# Prefer a non-root user.
|
||||||
RUN useradd -ms /bin/bash pbot
|
RUN useradd -ms /bin/bash pbot
|
||||||
|
|
||||||
# Install pbot and its own dependencies (replace nitrix with pragma- eventually).
|
# Location for perl libraries.
|
||||||
RUN cd /opt && git clone --recursive --depth=1 https://github.com/nitrix/pbot
|
|
||||||
|
|
||||||
# Perl dependencies.
|
|
||||||
RUN cpanm --local-lib=/home/pbot/perl5 local::lib && eval $(perl -I /home/pbot/perl5/lib/perl5/ -Mlocal::lib)
|
RUN cpanm --local-lib=/home/pbot/perl5 local::lib && eval $(perl -I /home/pbot/perl5/lib/perl5/ -Mlocal::lib)
|
||||||
RUN cd /opt/pbot && cpanm -n --installdeps . --with-all-features --without-feature=compiler_vm_win32
|
|
||||||
|
|
||||||
# Translate shell.
|
# Install pbot from sources and get dependencies (replace nitrix with pragma- eventually).
|
||||||
RUN sed -i 's/^Components: main$/& contrib/' /etc/apt/sources.list.d/debian.sources
|
RUN cd /opt && git clone --recursive --depth=1 https://github.com/nitrix/pbot
|
||||||
RUN apt-get update && apt-get install -y libfribidi0 libfribidi-bin gawk libsigsegv2 translate-shell
|
RUN cd /opt/pbot && cpanm -n --installdeps . --with-all-features --without-feature=compiler_vm_win32
|
||||||
|
|
||||||
# Wiktionary parser.
|
# Wiktionary parser.
|
||||||
RUN pip install git+https://github.com/pragma-/WiktionaryParser --break-system-packages
|
RUN pip install git+https://github.com/pragma-/WiktionaryParser --break-system-packages
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user