Commit 4c1bb568 authored by Adrian DC's avatar Adrian DC
Browse files

build(pages): migrate to 'python:3.12-slim' Ubuntu base image

Signed-off-by: default avatarAdrian DC <radian.dc@gmail.com>
parent 428ae8b4
Loading
Loading
Loading
Loading
+1 −1
Changes for .gitlab-ci.yml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -128,7 +128,7 @@ images:
          'build                 | python:3.12-alpine | build' \
          'codestyle             | python:3.12-alpine | codestyle' \
          'deploy                | python:3.12-alpine | deploy' \
          'pages                 | python:3.12-alpine | pages' \
          'pages                 | python:3.12-slim   | pages' \
          'test-coverage-linux   | python:3.12        | test-coverage-linux' \
          'test-coverage-windows | tobix/pywine:3.10  | test-coverage-windows' \
          'test-oldest           | python:3.8         | test-linux' \
+8 −4
Changes for containers/pages/Dockerfile: 8 added lines, 4 removed lines.
Original line number Diff line number Diff line
ARG IMAGE_BASE=python:3-alpine
ARG IMAGE_BASE=python:3-slim
FROM $IMAGE_BASE

# Install dependencies
RUN apk add -q --no-cache  \
RUN apt update \
 && apt install -y --no-install-recommends \
      git \
 && apk add -q --no-cache  --repository https://dl-cdn.alpinelinux.org/alpine/edge/community \
      git-cliff
      wget \
 && wget -O ./git-cliff.deb -q https://github.com/orhun/git-cliff/releases/download/v2.5.0/git-cliff-2.5.0.deb \
 && apt install -y --no-install-recommends ./git-cliff.deb \
 && rm -f ./git-cliff.deb \
 && rm -rf /var/lib/apt/lists/*

# Install requirements
COPY --from='requirements' ./pages.txt /tmp/