-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
31 lines (25 loc) · 914 Bytes
/
Dockerfile
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.7.9-alpine3.13 AS compile-image
WORKDIR /app
RUN apk --no-cache -U add \
gcc=10.2.1_pre1-r3 \
libc-dev=0.7.2-r3 \
&& 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.7.9-alpine3.13 AS build-image
COPY --from=compile-image /app/venv /app/venv
RUN apk --no-cache add \
git=2.30.2-r0 \
openjdk8-jre=8.275.01-r0 \
curl=7.74.0-r1 \
&& 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