Skip to content

Commit

Permalink
Updated baseimage to version 2.4.6 and use one based on Alpine 3.15.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlesage committed Jan 2, 2022
1 parent 75cda8c commit 896dd88
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#

# Pull base image.
FROM jlesage/baseimage:alpine-3.12-v2.4.5
FROM jlesage/baseimage:alpine-3.15-v2.4.6

# Docker image version is provided via build arg.
ARG DOCKER_IMAGE_VERSION=unknown
Expand Down Expand Up @@ -210,11 +210,11 @@ RUN \
curl -# -L "https://bootstrap.pypa.io/get-pip.py" | python3 && \
# Then install certbot.
CARGO_HOME=/tmp/.cargo pip install --no-cache-dir --prefix=/usr certbot && \
find /usr/lib/python3.8/site-packages -type f -name "*.so" -exec strip {} ';' && \
find /usr/lib/python3.8/site-packages -type f -name "*.h" -delete && \
find /usr/lib/python3.8/site-packages -type f -name "*.c" -delete && \
find /usr/lib/python3.8/site-packages -type f -name "*.exe" -delete && \
find /usr/lib/python3.8/site-packages -type d -name tests -print0 | xargs -0 rm -r && \
find /usr/lib/python3.9/site-packages -type f -name "*.so" -exec strip {} ';' && \
find /usr/lib/python3.9/site-packages -type f -name "*.h" -delete && \
find /usr/lib/python3.9/site-packages -type f -name "*.c" -delete && \
find /usr/lib/python3.9/site-packages -type f -name "*.exe" -delete && \
find /usr/lib/python3.9/site-packages -type d -name tests -print0 | xargs -0 rm -r && \
# Cleanup.
del-pkg build-dependencies && \
rm -rf /tmp/* /tmp/.[!.]*
Expand All @@ -228,6 +228,7 @@ RUN \
patch \
yarn \
git \
python2 \
python3 \
npm \
bash \
Expand Down

0 comments on commit 896dd88

Please sign in to comment.