diff --git a/docker/Dockerfile.python-3.6 b/docker/Dockerfile.python-3.6 new file mode 100644 index 0000000000..c510fefd29 --- /dev/null +++ b/docker/Dockerfile.python-3.6 @@ -0,0 +1,35 @@ +FROM python:3.6-slim + +MAINTAINER Snyk Ltd + +RUN mkdir /home/node +WORKDIR /home/node + +# Install Python utilities, node, Snyk CLI +RUN pip install pip pipenv virtualenv -U && \ + apt-get update && \ + apt-get install -y build-essential curl git && \ + curl -sL https://deb.nodesource.com/setup_10.x | bash - && \ + apt-get install -y nodejs jq && \ + npm install --global snyk snyk-to-html && \ + apt-get autoremove -y && \ + apt-get clean && \ + chmod -R a+wrx /home/node + +ENV HOME /home/node + +# The path at which the project is mounted (-v runtime arg) +ENV PROJECT_PATH /project + +COPY docker-python-entrypoint.sh . +COPY docker-entrypoint.sh . +COPY snyk_report.css . + +ENV SNYK_INTEGRATION_NAME DOCKER_SNYK_CLI +ENV SNYK_INTEGRATION_VERSION python-3.6 + +ENTRYPOINT ["./docker-python-entrypoint.sh"] + +# Default command is `snyk test` +# Override with `docker run ... snyk/snyk-cli ` +CMD ["test"]