blob: a16b8270b866252f48d85c04d507554c04dc9119 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
FROM alpine:latest
RUN apk update \
&& apk --no-cache --update add build-base
WORKDIR /bin.alpine
COPY nitro.c .
COPY nitroctl.c .
COPY Makefile .
RUN make CFLAGS="-Os -Wl,--gc-sections -fno-asynchronous-unwind-tables -fno-stack-protector -fno-stack-clash-protection" LDFLAGS="-static"
RUN nm --size-sort nitro
RUN ls -l nitro nitroctl
RUN size nitro nitroctl
|