-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
50 lines (39 loc) · 1.04 KB
/
Copy pathDockerfile
File metadata and controls
50 lines (39 loc) · 1.04 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
FROM alpine:3.24.1@sha256:28bd5fe8b56d1bd048e5babf5b10710ebe0bae67db86916198a6eec434943f8b
HEALTHCHECK NONE
ENTRYPOINT []
ARG USER_NAME=default
ARG USER_HOME=/home/default
ARG USER_ID=1000
ARG USER_GECOS=Default
SHELL ["/bin/ash", "-euo", "pipefail", "-c"]
RUN apk upgrade --no-cache \
&& apk add --no-cache \
coreutils=9.11-r0 \
csvq=1.18.1-r27 \
curl=8.20.0-r1 \
dasel=2.8.1-r15 \
gawk=5.3.2-r2 \
git=2.54.0-r0 \
grep=3.12-r0 \
miller=6.16.0-r5 \
pandoc-cli=3.10-r0 \
pipx=1.14.0-r0 \
py3-pip=26.1.2-r0 \
python3=3.14.5-r0 \
sed=4.9-r2 \
yq-go=4.53.3-r0 \
&& apk cache --no-cache clean \
&& rm -rf /var/cache/apk/*
COPY requirements.txt /tmp/requirements.txt
RUN pipx ensurepath --global \
&& xargs -a /tmp/requirements.txt -n 1 pipx install --global \
&& rm -f /tmp/requirements.txt
RUN adduser \
--home "${USER_HOME}" \
--uid "${USER_ID}" \
--gecos "${USER_GECOS}" \
--disabled-password \
"${USER_NAME}"
USER "${USER_NAME}"
ENV HOME="${USER_HOME}"
WORKDIR "${HOME}"