-
Notifications
You must be signed in to change notification settings - Fork 16
/
Dockerfile
47 lines (40 loc) · 880 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
39
40
41
42
43
44
45
46
47
# Basic build of frankenlibc with Docker
FROM alpine:3.2
MAINTAINER Justin Cormack <[email protected]>
RUN \
apk update && \
apk upgrade && \
apk add \
build-base \
linux-headers \
gawk \
sed \
zlib-dev \
openssl-dev \
ncurses-dev \
file \
wget \
git \
rsync \
m4 \
strace \
cdrkit \
coreutils \
bash \
dnsmasq \
iproute2 \
bridge-utils \
ethtool \
cmake \
curl
# While still in testing
RUN \
apk -X http://nl.alpinelinux.org/alpine/edge/testing update && \
apk -X http://nl.alpinelinux.org/alpine/edge/testing add libseccomp libseccomp-dev
COPY . /usr/src/frankenlibc
ENV SUDO_UID=1000
RUN \
cd /usr/src/frankenlibc && \
LDSTATIC=-static ./build.sh -F CPPFLAGS=-U_FORTIFY_SOURCE -d /usr/local/rump -b /usr/local/bin seccomp && \
cp rumpobj/tests/hello /usr/local/bin/rump.helloworld && \
make clean