Compare commits

...

1 commit

Author SHA1 Message Date
Simon Bruder c0e93bfe72
add http socket proxy 2019-06-01 11:45:53 +00:00
2 changed files with 21 additions and 0 deletions

View file

@ -11,3 +11,15 @@ steps:
password:
from_secret: docker_password
repo: r.sbruder.de/aria2
- name: docker
image: plugins/docker
settings:
registry: r.sbruder.de
username:
from_secret: docker_username
password:
from_secret: docker_password
context: http-socket
dockerfile: http-socket/Dockerfile
repo: r.sbruder.de/http-socket

9
http-socket/Dockerfile Normal file
View file

@ -0,0 +1,9 @@
FROM alpine
RUN apk add --no-cache \
socat \
tini
EXPOSE 80
ENTRYPOINT ["tini", "--", "socat", "TCP-LISTEN:80,reuseaddr,fork,su=nobody", "UNIX-CLIENT:/var/run/nginx.sock"]