This repository has been archived on 2020-06-14. You can view files and clone it, but cannot push or open issues/pull-requests.
unxwb/Dockerfile

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"]