Created
April 19, 2019 16:09
-
-
Save remitaffin/a9425101b074876ae479c05b4bf3f60d to your computer and use it in GitHub Desktop.
Basic Dockerfile to be used for testing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.6 | |
ARG SSH_PRIV_KEY | |
RUN mkdir /root/.ssh/ && echo "${SSH_PRIV_KEY}" | base64 -d > /root/.ssh/id_rsa && chmod 400 /root/.ssh/id_rsa | |
# Required for cloning git repos | |
RUN touch /root/.ssh/known_hosts | |
RUN ssh-keyscan -H github.com > /root/.ssh/known_hosts | |
# Path to requirements.txt might need to be updated here depending on the application | |
COPY requirements.txt /root/requirements.txt | |
RUN pip install -r /root/requirements.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment