mirror of https://github.com/docker/docker-py.git
21 lines
474 B
Plaintext
21 lines
474 B
Plaintext
# syntax=docker/dockerfile:1
|
|
|
|
ARG API_VERSION=1.45
|
|
ARG ENGINE_VERSION=26.1
|
|
|
|
FROM docker:${ENGINE_VERSION}-dind
|
|
|
|
RUN apk add --no-cache --upgrade \
|
|
openssh
|
|
|
|
COPY tests/ssh/config/server /etc/ssh/
|
|
|
|
# set authorized keys for client paswordless connection
|
|
COPY tests/ssh/config/client/id_rsa.pub /root/.ssh/authorized_keys
|
|
|
|
# RUN echo "root:root" | chpasswd
|
|
RUN chmod -R 600 /etc/ssh \
|
|
&& chmod -R 600 /root/.ssh \
|
|
&& ln -s /usr/local/bin/docker /usr/bin/docker
|
|
EXPOSE 22
|