Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
idabblewith committed Feb 17, 2025
1 parent 06fbe32 commit 25387fb
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,23 @@ RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/etc/poetry python
ENV PATH="${PATH}:/etc/poetry/bin"

# Prince Download
RUN echo "Downloading Prince Package" \
# RUN echo "Downloading Prince Package" \
# && DEB_FILE=prince.deb \
# && wget -O ${DEB_FILE} \
# # https://www.princexml.com/download/prince_15.3-1_debian12_amd64.deb
# https://www.princexml.com/download/prince_15.4.1-1_debian12_amd64.deb
RUN echo "Downloading and Installing Prince Package based on architecture" \
&& DEB_FILE=prince.deb \
&& wget -O ${DEB_FILE} \
# https://www.princexml.com/download/prince_15.3-1_debian12_amd64.deb
https://www.princexml.com/download/prince_15.4.1-1_debian12_amd64.deb
&& ARCH=$(dpkg --print-architecture) \
&& if [ "$ARCH" = "arm64" ]; then \
PRINCE_URL="https://www.princexml.com/download/prince_20250207-1_debian12_arm64.deb"; \
# https://www.princexml.com/download/prince_15.4.1-1_debian12_arm64.deb"; \
else \
PRINCE_URL="https://www.princexml.com/download/prince_20250207-1_debian12_amd64.deb"; \
# https://www.princexml.com/download/prince_15.4.1-1_debian12_amd64.deb"; \
fi \
&& echo "Detected architecture: $ARCH, downloading from $PRINCE_URL" \
&& wget -O ${DEB_FILE} $PRINCE_URL

# Prince installer
RUN apt-get update && apt-get install -y -o Acquire::Retries=4 --no-install-recommends \
Expand All @@ -45,7 +57,9 @@ RUN echo "Installing Prince stuff" \
&& DEB_FILE=prince.deb \
&& yes | gdebi ${DEB_FILE} \
&& echo "Cleaning up" \
&& rm -f ${DEB_FILE}
&& rm -f ${DEB_FILE} \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

# Set Prince location
ENV PATH="${PATH}:/usr/lib/prince/bin"
Expand Down

0 comments on commit 25387fb

Please sign in to comment.