-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from ljpengelen/feature/update-dockerfile
Use latest LTS of Ubuntu
- Loading branch information
Showing
1 changed file
with
10 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |