-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
52 lines (42 loc) · 1.63 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
47
48
49
50
51
52
#
# This file is part of Brazil Data Cube Sentinel-2 Angle Bands.
# Copyright (C) 2022 INPE.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/gpl-3.0.html>.
#
# ubuntu:18.04
FROM ubuntu@sha256:122f506735a26c0a1aff2363335412cfc4f84de38326356d31ee00c2cbe52171
LABEL maintainer="Brazil Data Cube Team <brazildatacube@inpe.br>"
# Setup build env for PROJ
USER root
RUN apt-get update -y \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --fix-missing --no-install-recommends \
software-properties-common build-essential ca-certificates \
git make cmake wget unzip libtool automake \
zlib1g-dev libsqlite3-dev pkg-config sqlite3 libcurl4-gnutls-dev \
libtiff5-dev \
&& apt install python3-pip -y \
&& apt install nano \
&& rm -rf /var/lib/apt/lists/*
RUN apt install python3-pip
RUN mkdir /app
# s2-angs
COPY . /app/s2angs
WORKDIR /app/s2angs
RUN pip3 install .
RUN mkdir /code
COPY docker_entrypoint.py /code
WORKDIR /work
### Run the sen2cor application
ENTRYPOINT ["python3", "/code/docker_entrypoint.py"]