Skip to content

Instantly share code, notes, and snippets.

@remitaffin
Created April 19, 2019 16:09
Show Gist options
  • Save remitaffin/a9425101b074876ae479c05b4bf3f60d to your computer and use it in GitHub Desktop.
Save remitaffin/a9425101b074876ae479c05b4bf3f60d to your computer and use it in GitHub Desktop.
Basic Dockerfile to be used for testing
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