Skip to content

Commit 07ff912

Browse files
committed
Merge pull request docker-library#27 from infosiftr/slim-fix
Add slim deps of libsqlite3-0 at runtime and libsqlite3-dev at build time
2 parents db08f8d + c0c6749 commit 07ff912

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

2.7/slim/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ RUN apt-get purge -y python.*
77
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
88
ENV LANG C.UTF-8
99

10-
RUN apt-get update && apt-get install -y ca-certificates libssl1.0.0 --no-install-recommends && rm -rf /var/lib/apt/lists/*
10+
RUN apt-get update && apt-get install -y --no-install-recommends \
11+
ca-certificates \
12+
libsqlite3-0 \
13+
libssl1.0.0 \
14+
&& rm -rf /var/lib/apt/lists/*
1115

1216
ENV PYTHON_VERSION 2.7.8
1317

1418
RUN set -x \
15-
&& buildDeps='curl gcc libc6-dev libssl-dev make xz-utils zlib1g-dev' \
19+
&& buildDeps='curl gcc libc6-dev libsqlite3-dev libssl-dev make xz-utils zlib1g-dev' \
1620
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
1721
&& mkdir -p /usr/src/python \
1822
&& curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" \

3.3/slim/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ RUN apt-get purge -y python.*
77
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
88
ENV LANG C.UTF-8
99

10-
RUN apt-get update && apt-get install -y ca-certificates libssl1.0.0 --no-install-recommends && rm -rf /var/lib/apt/lists/*
10+
RUN apt-get update && apt-get install -y --no-install-recommends \
11+
ca-certificates \
12+
libsqlite3-0 \
13+
libssl1.0.0 \
14+
&& rm -rf /var/lib/apt/lists/*
1115

1216
ENV PYTHON_VERSION 3.3.6
1317

1418
RUN set -x \
15-
&& buildDeps='curl gcc libc6-dev libssl-dev make xz-utils zlib1g-dev' \
19+
&& buildDeps='curl gcc libc6-dev libsqlite3-dev libssl-dev make xz-utils zlib1g-dev' \
1620
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
1721
&& mkdir -p /usr/src/python \
1822
&& curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" \

3.4/slim/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ RUN apt-get purge -y python.*
77
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
88
ENV LANG C.UTF-8
99

10-
RUN apt-get update && apt-get install -y ca-certificates libssl1.0.0 --no-install-recommends && rm -rf /var/lib/apt/lists/*
10+
RUN apt-get update && apt-get install -y --no-install-recommends \
11+
ca-certificates \
12+
libsqlite3-0 \
13+
libssl1.0.0 \
14+
&& rm -rf /var/lib/apt/lists/*
1115

1216
ENV PYTHON_VERSION 3.4.2
1317

1418
RUN set -x \
15-
&& buildDeps='curl gcc libc6-dev libssl-dev make xz-utils zlib1g-dev' \
19+
&& buildDeps='curl gcc libc6-dev libsqlite3-dev libssl-dev make xz-utils zlib1g-dev' \
1620
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
1721
&& mkdir -p /usr/src/python \
1822
&& curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" \

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy