Add ssh proxy

This commit is contained in:
Jonathan Leibiusky @xetorthio
2017-06-19 11:55:04 -03:00
committed by Marcos Lilljedahl
parent 9de63d5c17
commit 755e3c7707
6 changed files with 233 additions and 2 deletions

View File

@@ -10,14 +10,18 @@ WORKDIR /go/src/github.com/play-with-docker/play-with-docker
RUN go get -v -d ./...
RUN ssh-keygen -N "" -t rsa -f /etc/ssh/ssh_host_rsa_key >/dev/null
RUN CGO_ENABLED=0 go build -a -installsuffix nocgo -o /go/bin/play-with-docker .
FROM alpine
RUN apk --update add ca-certificates
RUN mkdir -p /app/pwd
COPY --from=0 /go/bin/play-with-docker /app/play-with-docker
COPY --from=0 /etc/ssh/ssh_host_rsa_key /etc/ssh/ssh_host_rsa_key
COPY ./www /app/www
WORKDIR /app