Skip to content

Commit

Permalink
Fixes on dependencies (#138)
Browse files Browse the repository at this point in the history
* Add libjpeg as dependency to dockerfile, is needed by WeasyPrint > Pillow

* Pin MarkupSafe to 2.0.1 to fix pallets/jinja#1585
  • Loading branch information
encrypt94 committed Nov 24, 2022
1 parent ced93b0 commit b25c8fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM debian:buster
EXPOSE 2244
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update
RUN apt-get -y install git python3-dev python3-venv python3-pip libcairo-dev libpango1.0-dev locales
RUN apt-get -y install git python3-dev python3-venv python3-pip libcairo-dev libpango1.0-dev libjpeg-dev locales

RUN sed -i -e 's/# fr_FR.UTF-8 UTF-8/fr_FR.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales && \
Expand All @@ -15,4 +15,4 @@ ENV LC_ALL fr_FR.UTF-8
COPY ./ /srv/copanier
RUN cd /srv/copanier/ && python3 -m venv /srv/copanier-venv && . /srv/copanier-venv/bin/activate && pip install wheel gunicorn && pip install -e .

RUN dpkg-reconfigure locales
RUN dpkg-reconfigure locales
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ install_requires =
debts==0.5
emails==0.6
Weasyprint==51
MarkupSafe==2.0.1

[options.extras_require]
dev =
Expand Down

0 comments on commit b25c8fa

Please sign in to comment.