forked from k3s-io/k3s-root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.dapper
50 lines (48 loc) · 943 Bytes
/
Dockerfile.dapper
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.14
RUN set -eux \
&& apk --no-cache add \
bash
SHELL ["/usr/bin/env", "bash", "-c"]
RUN set -eux \
&& apk --no-cache add \
autoconf \
automake \
bc \
binutils \
build-base \
ca-certificates \
ccache \
cmake \
coreutils \
cpio \
curl \
findutils \
git \
libtool \
lz4 \
mercurial \
musl-dev \
musl-libintl \
ncurses-dev \
ninja \
python3 \
rpcgen \
rsync \
sed \
subversion \
tar \
unzip \
wget \
xz \
zstd
ENV DAPPER_SOURCE /source
ENV DAPPER_OUTPUT ./artifacts ./dist
ENV DAPPER_ENV BUILDARCH BUILDROOT_VERSION VERBOSE
ENV DAPPER_RUN_ARGS -v k3s-root-cache:/var/cache/dl --security-opt seccomp=unconfined
ENV BR2_DL_DIR /var/cache/dl
# Required to build as root, even in Docker
ENV FORCE_UNSAFE_CONFIGURE 1
ENV HOME ${DAPPER_SOURCE}
WORKDIR ${DAPPER_SOURCE}
ENTRYPOINT ["./scripts/entry"]
CMD ["ci"]