16 lines
278 B
Docker
16 lines
278 B
Docker
|
FROM alpine:3.16.3 AS builder
|
||
|
|
||
|
RUN apk add --update --no-cache \
|
||
|
build-base \
|
||
|
make \
|
||
|
cmake \
|
||
|
boost1.78-static
|
||
|
|
||
|
WORKDIR /app
|
||
|
|
||
|
COPY . ./
|
||
|
|
||
|
RUN make prod && \
|
||
|
strip build/Release/lander && \
|
||
|
[ "$(readelf -d build/Release/lander | grep NEEDED | wc -l)" = 0 ]
|