-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
30 lines (23 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
FROM debian:bookworm
ARG DEBIAN_FRONTEND="noninteractive"
RUN apt-get update \
&& apt-get install -y \
git zip p7zip wget curl build-essential \
lsb-release ca-certificates apt-transport-https software-properties-common
RUN echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/sury-php.list \
&& wget -qO - https://packages.sury.org/php/apt.gpg | apt-key add - \
&& apt update \
&& apt install -y php8.0 php8.0-mbstring php8.0-xml php8.0-exif
RUN cd /root \
&& git clone https://gitlab.com/kibley/cherrytreetomarkdown \
&& cd /root/cherrytreetomarkdown/ \
&& php composer.phar install
COPY splitconvert.py /root/cherrytreetomarkdown/splitconvert.py
COPY requirements.txt /root/cherrytreetomarkdown/requirements.txt
RUN apt install -y python3-pip \
&& cd /root/cherrytreetomarkdown \
&& pip install -r requirements.txt --break-system-packages
VOLUME /root/cherrytreetomarkdown/volumes/output
VOLUME /root/cherrytreetomarkdown/volumes/input
WORKDIR /root/cherrytreetomarkdown
ENTRYPOINT bash