-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (25 loc) · 855 Bytes
/
Dockerfile
File metadata and controls
31 lines (25 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM python:3.12-alpine AS compile-image
WORKDIR /app
RUN apk --no-cache add \
gcc \
libc-dev \
&& rm -rf /var/cache/apk/*
COPY requirements.txt /app/requirements.txt
ENV PATH="/app/venv/bin:$PATH"
RUN python -m venv /app/venv
RUN pip3 install --upgrade pip setuptools wheel \
&& pip3 install --no-cache-dir -r requirements.txt
FROM python:3.12-alpine AS build-image
COPY --from=compile-image /app/venv /app/venv
RUN apk --no-cache add \
git \
openjdk17-jre-headless \
curl \
&& rm -rf /var/cache/apk/*
ENV VERSION=2.13.8
RUN wget https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/$VERSION/allure-commandline-$VERSION.tgz
RUN tar -zxf allure-commandline-$VERSION.tgz
RUN rm allure-commandline-${VERSION}.tgz
ENV PATH="/allure-${VERSION}/bin:${PATH}"
ENV PATH="/app/venv/bin:$PATH"
WORKDIR /app