-
Notifications
You must be signed in to change notification settings - Fork 1
/
dockerfile
38 lines (28 loc) · 1016 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
32
33
34
35
36
37
38
FROM ubuntu:22.04
ARG DEBIAN_FRONTEND=noninteractive
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
apt-get update && apt-get install -y \
curl \
jq \
libatomic1 \
software-properties-common
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
add-apt-repository -y ppa:deadsnakes/ppa && \
apt-get install -y --no-install-recommends libpython3.9
ARG FVP_VERSION
ARG FVP_BASE_URL
ARG FVP_ARCHIVE
RUN curl -LO ${FVP_BASE_URL}/${FVP_VERSION}/${FVP_ARCHIVE} && \
mkdir -p /opt/avh-fvp && \
tar -xf ${FVP_ARCHIVE} --strip-components 1 -C /opt/avh-fvp && \
rm ${FVP_ARCHIVE}
ARG USERNAME=root
ARG USERID=0
RUN test ${USERID} -ne 0 && \
groupadd -g ${USERID} ${USERNAME} && \
useradd -l -r -u ${USERID} -g ${USERNAME} ${USERNAME}
USER ${USERNAME}
ENV PATH=$PATH:/opt/avh-fvp/bin
CMD ["/bin/bash"]