umgefahren
commited on
Commit
·
c14b430
1
Parent(s):
9372a94
Add Dockerfile
Browse files- Dockerfile +31 -0
Dockerfile
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM continuumio/miniconda3
|
2 |
+
|
3 |
+
RUN apt-get update && apt-get install -y \
|
4 |
+
apt-transport-https \
|
5 |
+
ca-certificates \
|
6 |
+
gnupg2 \
|
7 |
+
--no-install-recommends
|
8 |
+
|
9 |
+
# Add the unstable repository and its key
|
10 |
+
RUN echo "deb http://deb.debian.org/debian unstable main" > /etc/apt/sources.list.d/unstable.list && \
|
11 |
+
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 04EE7237B7D453EC && \
|
12 |
+
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138
|
13 |
+
|
14 |
+
RUN apt-get install -y build-essential
|
15 |
+
RUN apt-get update
|
16 |
+
RUN apt-get install -t unstable -y gdal-bin libgdal-dev
|
17 |
+
|
18 |
+
RUN conda install -y python=3.10
|
19 |
+
|
20 |
+
RUN python -m pip install torchvision torch
|
21 |
+
RUN python -m pip install git+https://github.com/facebookresearch/detectron2.git
|
22 |
+
RUN python -m pip install torchvision torch rasterio
|
23 |
+
RUN python -m pip install git+https://github.com/PatBall1/detectree2.git
|
24 |
+
RUN python -m pip install opencv-python
|
25 |
+
RUN python -m pip install requests
|
26 |
+
|
27 |
+
RUN python -m pip install gradio
|
28 |
+
|
29 |
+
COPY . .
|
30 |
+
|
31 |
+
CMD ["python", "main.py"]
|