Select Git revision
-
Hammouda Elbez authoredHammouda Elbez authored
Dockerfile 1.10 KiB
# FROM ubuntu:rolling
FROM ubuntu:20.04
# Install dependencies
RUN apt-get update && apt-get install -y software-properties-common && add-apt-repository universe && add-apt-repository ppa:deadsnakes/ppa && apt-get update && apt-get install -y python3.6 python3-pip openjdk-8-jdk wget git && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
USER root
WORKDIR /opt/application/
# Open container ports for external access
EXPOSE 8050-8051 27017
RUN git clone https://gitlab.univ-lille.fr/bioinsp/VS2N.git .
# install requirements
RUN pip install -r requirements.txt && cp default.config.py config.py
# install mongoDB
RUN wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | apt-key add -
RUN echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.4.list
RUN apt-get update && apt-get install -y mongodb-org && rm -rf /var/lib/apt/lists/* && mkdir /home/data && mkdir /home/data/db && touch /home/data/db/log
# start MongoDB & VS2N
ADD start.sh /
RUN chmod +x /start.sh
CMD ["/start.sh"]