23 lines
384 B
Docker
23 lines
384 B
Docker
|
FROM alpine as builder
|
||
|
|
||
|
RUN apk add --no-cache \
|
||
|
build-base \
|
||
|
unzip \
|
||
|
zlib-dev \
|
||
|
zlib-static
|
||
|
|
||
|
COPY unxwb.zip /
|
||
|
|
||
|
RUN mkdir unxwb \
|
||
|
&& cd unxwb \
|
||
|
&& unzip ../unxwb.zip \
|
||
|
&& gcc -I. -o unxwb -O3 -static unxwb.c -lz
|
||
|
|
||
|
FROM alpine
|
||
|
|
||
|
RUN apk add --no-cache tini
|
||
|
|
||
|
COPY --from=builder /unxwb/unxwb /usr/local/bin/
|
||
|
|
||
|
ENTRYPOINT ["tini", "--", "unxwb"]
|