-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
33 lines (23 loc) · 1.18 KB
/
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
FROM opendronemap/odm
LABEL name="uavorthogenerator"
LABEL version="0.0.1"
LABEL description="flyandcreate - a tool for creating orthophotos, based on OpenDroneMap"
RUN apt-get update
# BUG: allow this and get a nice error that some of the crons are overwritten. Should be fixed one day
# RUN apt-get update && apt-get -y -q upgrade
RUN apt-get -q -y install build-essential python3-gdal libgeotiff-epsg gdal-bin python3-pip python3-venv python3-setuptools python3-wheel python3-dev
RUN pip3 install --upgrade pip
RUN pip3 install imageio
ENV PUS_DIR /app/publishandshare
ENV PUS_LIB publishandshare-0.1.1-py3-none-any.whl
ENV PUS_API_LIB publishandshareapi-1.0.0-py3-none-any.whl
RUN mkdir -p ${PUS_DIR}/packages/python3
COPY lib/python3/wrapper.py ${PUS_DIR}
COPY packages/python3/${PUS_LIB} ${PUS_DIR}/packages/python3
COPY packages/python3/${PUS_API_LIB} ${PUS_DIR}/packages/python3
RUN pip3 install ${PUS_DIR}/packages/python3/${PUS_LIB}
RUN pip3 install ${PUS_DIR}/packages/python3/${PUS_API_LIB}
ENV TOOL_NAME uavorthogenerator
ENV TOOL_VERSION 0_0_1
COPY ${TOOL_VERSION} /app/publishandshare/${TOOL_NAME}/${TOOL_VERSION}
ENTRYPOINT [ "python3", "-u", "/app/publishandshare/wrapper.py" ]