init
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simon Bruder 2019-06-21 16:59:09 +00:00
commit 502d60f5b1
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
2 changed files with 30 additions and 0 deletions

13
.drone.yml Normal file
View file

@ -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

17
Dockerfile Normal file
View file

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