-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.python-3.9
35 lines (26 loc) · 925 Bytes
/
Dockerfile.python-3.9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM python:3.13.0b4-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_14.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.9
ENTRYPOINT ["./docker-python-entrypoint.sh"]
# Default command is `snyk test`
# Override with `docker run ... snyk/snyk-cli <command> <args>`
CMD ["test"]