Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use latest LTS of Ubuntu #17

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading