Commit 6a69e2b3 authored by Armel Perod Nya's avatar Armel Perod Nya

Update Dockerfile fonctionnelle

parent 924f1ae0
Pipeline #33027 failed with stage
in 1 minute and 46 seconds
FROM python
FROM python:latest
MAINTAINER ifi Freiberg
SHELL ["/bin/bash", "-c"]
# update the system, install python3 and create symlinks and directories (supervisor forces python2.7 to also install)
RUN apt-get update -qqy --fix-missing \
&& apt-get upgrade -qqy \
&& apt-get install -qqy --no-install-recommends \
build-essential \
python2.5 \
python2.5-dev \
python2-pip \
python2-setuptools \
git \
libgtk2.0-dev \
&& git clone --depth=1 --branch=master\
&& apt-get remove -y --purge git \
&& apt-get autoremove -y
WORKDIR /home/armel/
COPY . /home/armel/
VOLUME /home/armel/
# install python dependencies opencv-python needs libgtk2.0-dev installed in the system
# copy files from contrib to src overwriting originals, if I wasn't lazy I'd do this better
RUN apt-get update && apt-get -y install -y python
- apt-get update
- apt-get install -y python python-virtualenv python-pip
- virtualenv venv
- . venv/bin/activate
- pip install -r requirements.txt
- apt-get install openjdk-8-jdk zip unzip --yes --no-install-recommends
- apt-get install python-numpy python-dev python-scipy python-matplotlib python-pandas python-pip python-wheel --yes --no-install-recommends
WORKDIR ~/home/armel/01Gitlablocal/ki-geohub
VOLUME ~/home/armel/01Gitlablocal/ki-geohub
ENV PYTHONPATH=$PYTHONPATH:/home/armel/01Gitlablocal
RUN apt-get -y update && apt-get install -y python
COPY . ~/
\ No newline at end of file
CMD ["python", ""]
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment