Skip to content

Commit

Permalink
Merge pull request #17 from ljpengelen/feature/update-dockerfile
Browse files Browse the repository at this point in the history
Use latest LTS of Ubuntu
  • Loading branch information
ljpengelen authored Aug 6, 2024
2 parents baa6567 + 307dd8d commit 31ba879
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
FROM ubuntu:jammy
FROM ubuntu:noble

RUN apt-get update \
&& apt-get -y install \
libcairo2 \
libffi-dev \
libpango-1.0-0 \
libpangocairo-1.0-0 \
python3-pip \
pipx \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /var/cache/apt/*

ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8

RUN pip3 install --no-cache \
Pillow==10.0.1 \
click==8.1.7 \
markdown==3.5 \
markdown-include==0.8.1 \
weasyprint==60.1 \
watchdog==3.0.0 \
pydyf==0.10.0

RUN mkdir /app
WORKDIR /app

COPY md2pdf.py /app
ENV PIPENV_VENV_IN_PROJECT=1
COPY Pipfile /app
COPY Pipfile.lock /app
RUN pipx run pipenv sync

WORKDIR /app
ENV PATH /app/.venv/bin:$PATH

COPY md2pdf.py /app

0 comments on commit 31ba879

Please sign in to comment.