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
Simon Bruder 502d60f5b1
All checks were successful
continuous-integration/drone/push Build is passing
init
2019-06-21 16:59:09 +00:00

18 lines
358 B
Docker

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