-
Notifications
You must be signed in to change notification settings - Fork 81
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (30 loc) · 765 Bytes
/
Dockerfile
File metadata and controls
36 lines (30 loc) · 765 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
32
33
34
35
36
# SPDX-License-Identifier: MIT
# Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com
FROM alpine:3
RUN apk add --no-cache \
bash \
diffutils \
dumb-init \
git \
graphviz \
make \
py3-pip \
ripgrep \
shadow \
su-exec \
tar \
vale \
zip \
&& echo "**** create abc user and make our folders ****" \
&& useradd -u 1000 -U -d /config -s /bin/false abc \
&& usermod -G users abc \
&& mkdir /build && chown abc:abc /build \
&& mkdir /config && chown abc:abc /config
RUN --mount=type=bind,source=requirements.txt,target=/tmp/requirements.txt \
python3 -m pip install -r /tmp/requirements.txt --no-cache-dir \
--break-system-packages
COPY root/ /
WORKDIR /build
VOLUME /build
ENTRYPOINT ["/init"]
CMD ["/bin/bash"]