broadfield-dev commited on
Commit
d0d0393
·
verified ·
1 Parent(s): 75d2a41

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -6
Dockerfile CHANGED
@@ -1,6 +1,9 @@
1
  FROM python:3.10-slim
2
 
3
- # 1. Install the base dependencies that are available in the current repository.
 
 
 
4
  RUN apt-get update && apt-get install -y --no-install-recommends \
5
  wget \
6
  ca-certificates \
@@ -11,15 +14,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
  # 2. Download and install the specific, older dependency versions from the official Debian archives.
14
- # These URLs point to the 'buster' versions required by wkhtmltox.
15
  RUN set -ex; \
16
- wget http://ftp.debian.org/debian/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.2-2+deb10u1_amd64.deb && \
17
  wget http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.1_1.1.1n-0+deb10u7_amd64.deb && \
18
- apt-get update && \
19
- apt-get install -y --no-install-recommends ./*.deb && \
20
  rm ./*.deb
21
 
22
- # 3. With all dependencies now satisfied, download and install wkhtmltox.
23
  RUN wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_amd64.deb && \
24
  apt-get install -y --no-install-recommends ./wkhtmltox_0.12.6-1.buster_amd64.deb && \
25
  rm ./wkhtmltox_0.12.6-1.buster_amd64.deb && \
 
1
  FROM python:3.10-slim
2
 
3
+ # Set the DEBIAN_FRONTEND to noninteractive to avoid warnings during apt-get install
4
+ ENV DEBIAN_FRONTEND=noninteractive
5
+
6
+ # 1. Install base dependencies that are available in the current repository.
7
  RUN apt-get update && apt-get install -y --no-install-recommends \
8
  wget \
9
  ca-certificates \
 
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
  # 2. Download and install the specific, older dependency versions from the official Debian archives.
17
+ # These are the correct, stable locations for these legacy packages.
18
  RUN set -ex; \
19
+ wget http://archive.debian.org/debian/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.2-2+deb10u1_amd64.deb && \
20
  wget http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.1_1.1.1n-0+deb10u7_amd64.deb && \
21
+ apt-get install -y ./*.deb && \
 
22
  rm ./*.deb
23
 
24
+ # 3. With all dependencies satisfied, download and install wkhtmltox.
25
  RUN wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_amd64.deb && \
26
  apt-get install -y --no-install-recommends ./wkhtmltox_0.12.6-1.buster_amd64.deb && \
27
  rm ./wkhtmltox_0.12.6-1.buster_amd64.deb && \