Skip to content

Commit

Permalink
fix: Upgrade Python3 to 3.7 instead of 3.5
Browse files Browse the repository at this point in the history
Some packages require higher versions to be installed
  • Loading branch information
Julien Duchesne authored and Anton Drukh committed Jul 6, 2019
1 parent 0466101 commit ca6958b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
16 changes: 10 additions & 6 deletions docker/Dockerfile.python-2
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
FROM node:8-slim
FROM python:2.7-slim

MAINTAINER Snyk Ltd

RUN mkdir /home/node
WORKDIR /home/node
ENV HOME /home/node

# Install python, virtualenv, cli
RUN apt-get update && \
apt-get install -y python python-dev python-pip libssl-dev jq && \
pip install pip virtualenv -U && \
# Install Python utilities, node, Snyk CLI
RUN pip3 install pip pipenv virtualenv -U && \
apt-get update && \
apt-get install -y curl && \
curl -sL https://deb.nodesource.com/setup_8.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

Expand Down
18 changes: 10 additions & 8 deletions docker/Dockerfile.python-3
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
FROM node:8-slim
FROM python:3.7-slim

MAINTAINER Snyk Ltd

RUN mkdir /home/node
WORKDIR /home/node
ENV HOME /home/node

# Install python, virtualenv and cli
RUN apt-get update && \
apt-get install -y python3 python3-dev python3-pip libssl-dev jq && \
pip3 install pip pipenv virtualenv -U && \
ln -s /usr/bin/python3 /usr/bin/python && \
ln -s /usr/bin/pip3 /usr/bin/pip && \
# Install Python utilities, node, Snyk CLI
RUN pip3 install pip pipenv virtualenv -U && \
apt-get update && \
apt-get install -y curl && \
curl -sL https://deb.nodesource.com/setup_8.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

Expand Down

0 comments on commit ca6958b

Please sign in to comment.