-
Notifications
You must be signed in to change notification settings - Fork 570
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1420 from snyk/feat/docker-python-3.6
feat(docker): create Dockerfile.python-3.6
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
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"] |