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

18 lines
358 B
Docker
Raw Normal View History

2019-06-21 18:59:09 +02:00
FROM alpine as builder
RUN apk add --no-cache \
build-base \
git
RUN git clone --depth=1 https://github.com/rofl0r/microsocks \
&& cd microsocks \
&& make LDFLAGS="-static -s -w"
FROM alpine
RUN apk add --no-cache tini
COPY --from=builder /microsocks/microsocks /usr/local/bin/microsocks
ENTRYPOINT ["tini", "--", "microsocks"]