This commit is contained in:
commit
502d60f5b1
13
.drone.yml
Normal file
13
.drone.yml
Normal 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
17
Dockerfile
Normal 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"]
|
Reference in a new issue