Skip to content

Commit

Permalink
Fix Dockerfile for PyPI pycolmap (cvg#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
skydes authored Feb 15, 2022
1 parent 7d9a205 commit 7ec570c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
FROM colmap/colmap:latest
MAINTAINER Paul-Edouard Sarlin
ARG PYTHON_VERSION=3.8
RUN apt-get update -y
RUN apt-get install python3 python3-pip unzip wget -y
RUN apt-get install -y unzip wget software-properties-common
RUN add-apt-repository ppa:deadsnakes/ppa && \
apt-get -y update && \
apt-get install -y python${PYTHON_VERSION}
RUN wget https://bootstrap.pypa.io/get-pip.py && python${PYTHON_VERSION} get-pip.py
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python${PYTHON_VERSION} 1
COPY . /app
WORKDIR app/
RUN pip3 install --upgrade pip
RUN pip3 install -r requirements.txt
RUN pip3 install jupyterlab notebook
RUN pip3 install notebook

0 comments on commit 7ec570c

Please sign in to comment.