-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
47 lines (31 loc) · 1.16 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
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM ubuntu:22.04 AS compiler
LABEL maintainer SITN "[email protected]"
WORKDIR /tmp
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get upgrade --assume-yes \
&& apt-get install --assume-yes build-essential cmake git
RUN git clone https://github.com/potree/CPotree.git \
&& cd CPotree \
&& mkdir build \
&& cd build \
&& cmake -Wno-deprecated --log-level=ERROR ../ \
&& make
#######################################################################################################################
FROM ubuntu:22.04 as runner
ENV PIP_ROOT_USER_ACTION=ignore
RUN apt-get update \
&& apt-get upgrade --assume-yes \
&& apt-get install --assume-yes python3 python-is-python3 python3-pip \
&& apt-get -y autoremove --purge && apt-get -y autoclean
WORKDIR /app
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
COPY . /app
COPY --from=compiler /tmp/CPotree/build/extract_profile /usr/local/bin
COPY --from=compiler /tmp/CPotree/build/liblaszip.so /usr/local/lib
RUN chmod +x ./start_server.sh \
&& chmod +x /usr/local/bin/extract_profile \
&& chmod +x /usr/local/lib/liblaszip.so \
&& ldconfig
ENV PYTHONUNBUFFERED=1