forked from Linaro/lava-test-plans
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
26 lines (21 loc) · 793 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
FROM python:3.8-slim-buster AS git_builder
ARG DEBIAN_FRONTEND=noninteractive
# hadolint ignore=DL3008
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY . /lava-test-plans
RUN echo "lava-test-plans version: $(git -C /lava-test-plans describe)"> /lava-test-plans/.version
RUN rm -rf /lava-test-plans/.git
FROM python:3.8-slim-buster
ARG DEBIAN_FRONTEND=noninteractive
# hadolint ignore=DL3008
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
jq \
python3-pip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY --from=git_builder /lava-test-plans /lava-test-plans
RUN pip3 install --no-cache-dir -r /lava-test-plans/requirements.txt