forked from Kalitsune/reversed-ssh-tunnel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (17 loc) · 587 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM alpine:latest
MAINTAINER Kalitsune <[email protected]>
LABEL maintainer="Kalitsune [email protected]" \
org.label-schema.vcs-url="e.g. https://github.com/Kalitsune/reverse-ssh-tunnel"
RUN apk --no-cache add openssh-client
ADD run.sh /run.sh
# Supported vars and their default values
ENV SSH_PORT=22
ENV SSH_USER=root
ENV LOCAL_IP=127.0.0.1
ENV LOCAL_PORT=80
ENV GATEWAY_IP=""
ENV REMOTE_IP="*"
ENV REMOTE_PORT=80
# Security fix for CVE-2016-0777 and CVE-2016-0778
RUN echo -e 'Host *\nUseRoaming no' >> /etc/ssh/ssh_config
ENTRYPOINT ["/bin/sh", "-c", "/run.sh"]