mirror of
https://github.com/newnius/Dockerfiles.git
synced 2025-06-07 16:41:55 +00:00
add docker-proxy
This commit is contained in:
parent
a56a83029c
commit
dea8e39309
9
docker-proxy/Dockerfile
Normal file
9
docker-proxy/Dockerfile
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
FROM ubuntu
|
||||||
|
RUN apt update \
|
||||||
|
&& apt install -y openssh-server
|
||||||
|
|
||||||
|
RUN ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
|
||||||
|
RUN cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
|
||||||
|
|
||||||
|
ADD bootstrap.sh /etc/bootstrap.sh
|
||||||
|
CMD ["bash", "/etc/bootstrap.sh"]
|
4
docker-proxy/bootstrap.sh
Executable file
4
docker-proxy/bootstrap.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
/etc/init.d/ssh start
|
||||||
|
ssh -t -t -D 0.0.0.0:7001 -o StrictHostKeyChecking=no localhost
|
Loading…
Reference in New Issue
Block a user