Skip to content
Snippets Groups Projects
Commit 257d0bac authored by Matthieu Boileau's avatar Matthieu Boileau
Browse files

Simplify docker files

parent eebb7f5b
No related merge requests found
FROM python:3
MAINTAINER Matthieu Boileau <matthieu.boileau@math.unistra.fr>
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
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
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
RUN useradd -m -s /bin/bash euler
ENV HOME /home/euler
RUN chown -R euler:euler /home/euler
USER euler
WORKDIR $HOME
CMD /bin/bash
RUN virtualenv --python=/usr/bin/python2.7 $HOME/py27
COPY requirements.txt ./
RUN $HOME/py27/bin/pip install --no-cache-dir -r requirements.txt
CMD /bin/bash
version: '2'
services:
virtualenv:
build:
context: ../
dockerfile: docker/Dockerfile-pythran-virtualenv
image: boileaum/pythran:virtualenv
env:
build:
......
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