Skip to content

Commit d3effa1

Browse files
ci(docker): upgrade base image to python 3.12 and modernize alpine packages
1 parent 9c1aa6d commit d3effa1

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
FROM python:3.7.9-alpine3.13 AS compile-image
1+
FROM python:3.12-alpine AS compile-image
22

33
WORKDIR /app
4-
RUN apk --no-cache -U add \
5-
gcc=10.2.1_pre1-r3 \
6-
libc-dev=0.7.2-r3 \
4+
RUN apk --no-cache add \
5+
gcc \
6+
libc-dev \
77
&& rm -rf /var/cache/apk/*
88

99
COPY requirements.txt /app/requirements.txt
@@ -12,16 +12,16 @@ RUN python -m venv /app/venv
1212
RUN pip3 install --upgrade pip setuptools wheel \
1313
&& pip3 install --no-cache-dir -r requirements.txt
1414

15-
FROM python:3.7.9-alpine3.13 AS build-image
15+
FROM python:3.12-alpine AS build-image
1616
COPY --from=compile-image /app/venv /app/venv
1717

1818
RUN apk --no-cache add \
19-
git=2.30.2-r0 \
20-
openjdk8-jre=8.275.01-r0 \
21-
curl=7.74.0-r1 \
19+
git \
20+
openjdk17-jre-headless \
21+
curl \
2222
&& rm -rf /var/cache/apk/*
2323

24-
ENV VERSION 2.13.8
24+
ENV VERSION=2.13.8
2525
RUN wget https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/$VERSION/allure-commandline-$VERSION.tgz
2626
RUN tar -zxf allure-commandline-$VERSION.tgz
2727
RUN rm allure-commandline-${VERSION}.tgz

0 commit comments

Comments
 (0)