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

Correct dockerfiles

parent 257d0bac
Pipeline #8881 failed with stage
......@@ -21,7 +21,7 @@ USER euler
WORKDIR $HOME
RUN virtualenv --python=/usr/bin/python2.7 $HOME/py27
COPY requirements.txt ./
RUN $HOME/py27/bin/pip install --no-cache-dir -r requirements.txt
COPY requirements.txt /tmp/
RUN $HOME/py27/bin/pip install --no-cache-dir -r /tmp/requirements.txt
CMD /bin/bash
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
Markdown is supported
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