Commit eebb7f5b authored by Matthieu Boileau's avatar Matthieu Boileau
Browse files

Add Dockerfiles with virtualenv

parent b15f1715
Pipeline #8877 canceled with stage
FROM python:3
MAINTAINER Matthieu Boileau <matthieu.boileau@math.unistra.fr>
RUN apt-get update --fix-missing && \
apt-get install -y \
python-dev \
vim
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN pip install --no-cache-dir virtualenv
RUN pip install --no-cache-dir --upgrade pip
RUN useradd -m -s /bin/bash euler
ENV HOME /home/euler
RUN chown -R euler:euler /home/euler
USER euler
WORKDIR $HOME
COPY requirements.txt ./
RUN virtualenv --python=/usr/local/bin/python3.6 $HOME/py36
RUN $HOME/py36/bin/pip install --no-cache-dir -r requirements.txt
RUN virtualenv --python=/usr/bin/python2.7 $HOME/py27
RUN $HOME/py27/bin/pip install --no-cache-dir -r requirements.txt
CMD /bin/bash
FROM boileaum/pythran:latest
MAINTAINER Matthieu Boileau <matthieu.boileau@math.unistra.fr>
ENV HOME /home/euler
ADD . $HOME/rosen
USER root
#RUN chown -R euler:euler /home/euler
WORKDIR $HOME/rosen
USER euler
RUN . $HOME/py36 && pythran --version
RUN make clean && make
CMD /bin/bash
version: '2'
services:
virtualenv:
build:
context: ../
dockerfile: docker/Dockerfile-pythran-virtualenv
image: boileaum/pythran:virtualenv
env:
build:
context: ../
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment