mirror of https://github.com/docker/docker-py.git
21 lines
431 B
Plaintext
21 lines
431 B
Plaintext
ARG PYTHON_VERSION=3.7
|
|
|
|
FROM python:${PYTHON_VERSION}
|
|
|
|
RUN mkdir /src
|
|
WORKDIR /src
|
|
|
|
COPY requirements.txt /src/requirements.txt
|
|
RUN pip install -r requirements.txt
|
|
|
|
COPY test-requirements.txt /src/test-requirements.txt
|
|
RUN pip install -r test-requirements.txt
|
|
|
|
COPY . /src
|
|
RUN pip install .
|
|
|
|
# Add the keys and set permissions
|
|
COPY tests/ssh-keys /root/.ssh
|
|
RUN chmod 600 /root/.ssh/id_rsa && \
|
|
chmod 600 /root/.ssh/id_rsa.pub
|