-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
36 lines (29 loc) · 992 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# pull official LTS base image
FROM ubuntu:22.04
ARG DEBIAN_FRONTEND=noninteractive
# set work directory
WORKDIR /usr/src/app
# set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
ENV DOCKER 1
RUN apt-get update
RUN apt-get install -y software-properties-common
RUN apt-get install -y build-essential
RUN apt-get install -y git
RUN add-apt-repository ppa:ubuntugis/ppa
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt-get update
# install gdal
RUN apt install -y gdal-bin libgdal-dev
# Install py39 from deadsnakes repository
RUN apt-get install -y python3.9
RUN apt-get install -y python3.9-dev
RUN apt-get install -y python3-pip
# install dependencies
# RUN pip install --upgrade pip # With v 24 of pip lots of requirements inside dependencies will break. So don't force upgrade for now.
COPY ./requirements.txt .
RUN pip install --force git+https://github.com/scikit-learn-contrib/hdbscan.git
RUN pip install -r requirements.txt
# copy project
COPY . .