Skip to content

Commit 70b322a

Browse files
committed
Modified dockerfile to use pipx installation
1 parent 99db8a7 commit 70b322a

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

Dockerfile

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
FROM python:buster
1+
FROM python:bullseye
22

33
ENV TZ=Europe/Berlin
44
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
55

6+
# Install Cron
67
RUN apt-get update \
78
&& export DEBIAN_FRONTEND="noninteractive" \
89
&& apt-get install -y cron \
9-
&& rm -rf /var/lib/apt/lists/* \
10-
&& git clone https://github.com/webcomics/dosage.git \
11-
&& cd dosage \
12-
&& pip install --no-cache-dir -r requirements.txt \
13-
&& /usr/local/bin/python setup.py install \
14-
&& cd / \
15-
&& rm -r dosage
10+
&& rm -rf /var/lib/apt/lists/*
11+
12+
# Install pipx
13+
RUN python3 -m pip install --user pipx \
14+
&& python3 -m pipx ensurepath
15+
16+
# Install dosage
17+
RUN pipx install "dosage[css,bash] @ git+https://github.com/webcomics/dosage.git"
1618

1719
# Create dirs
1820
RUN mkdir /Comics && mkdir /templates

0 commit comments

Comments
 (0)