commit 502d60f5b1dfba8406c6de6bcacfd65d50a76748 Author: Simon Bruder Date: Fri Jun 21 16:59:09 2019 +0000 init diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..80c8729 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,13 @@ +kind: pipeline +name: default + +steps: + - name: microsocks + image: plugins/docker + settings: + registry: r.sbruder.de + username: + from_secret: docker_username + password: + from_secret: docker_password + repo: r.sbruder.de/microsocks diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c2dc043 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +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"]