-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (19 loc) · 780 Bytes
/
Dockerfile
File metadata and controls
19 lines (19 loc) · 780 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# syntax=docker/dockerfile:1.3
FROM ubuntu:latest
EXPOSE 8501
WORKDIR /app
RUN mkdir /usr/src/app
COPY requirements.txt /usr/src/app/
RUN apt-get update && \
apt-get install software-properties-common -y && \
apt-add-repository ppa:ubuntugis/ubuntugis-unstable && \
apt-get update && \
apt-get install git curl python3 python3-pip gdal-bin libgdal-dev -y && \
python3 -m pip install --upgrade pip && \
python3 -m pip install GDAL==3.4.1 && \
python3 -m pip install -r /usr/src/app/requirements.txt
COPY . /usr/src/app
RUN python3 -m pip install -e /usr/src/app
WORKDIR /usr/src/app
ENV PYTHONPATH "/usr/src/app:${PYTHONPATH}"
CMD ["dlsc", "--gui"]