Skip to content

Commit

Permalink
Merge pull request #1420 from snyk/feat/docker-python-3.6
Browse files Browse the repository at this point in the history
feat(docker): create Dockerfile.python-3.6
  • Loading branch information
JackuB authored Sep 29, 2020
2 parents e4647d6 + 0931140 commit 394f435
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions docker/Dockerfile.python-3.6
Original file line number Diff line number Diff line change
@@ -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 <command> <args>`
CMD ["test"]

0 comments on commit 394f435

Please sign in to comment.