-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
42 lines (36 loc) · 1.39 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
FROM ghcr.io/osgeo/gdal:ubuntu-small-3.10.0
# Install necessary packages
RUN apt-get update && \
apt-get install -y \
jq \
xmlstarlet \
zip \
default-jre \
bc \
nano \
wget \
python3-pip \
curl \
parallel \
dpkg && \
rm -rf /var/lib/apt/lists/*
# Download and install jacksum and s5cmd
RUN curl -L -O 'https://s3.waw3-2.cloudferro.com/swift/v1/jacksum/jacksum_1.7.0-4.1_all.deb' && \
dpkg -i jacksum_1.7.0-4.1_all.deb && rm jacksum_1.7.0-4.1_all.deb && \
curl -L -O 'https://github.com/peak/s5cmd/releases/download/v2.2.2/s5cmd_2.2.2_linux_amd64.deb' && \
dpkg -i s5cmd_2.2.2_linux_amd64.deb && rm s5cmd_2.2.2_linux_amd64.deb
# Copy and set permissions for scripts
COPY COG2GRD.sh /bin/COG2GRD.sh
COPY GRD2COG.sh /bin/GRD2COG.sh
COPY sentinel1_burst_extractor.sh /bin/sentinel1_burst_extractor.sh
COPY sentinel1_burst_extractor_spatiotemporal.sh /bin/sentinel1_burst_extractor_spatiotemporal.sh
RUN chmod +x /bin/COG2GRD.sh /bin/GRD2COG.sh /bin/sentinel1_burst_extractor.sh /bin/sentinel1_burst_extractor_spatiotemporal.sh
# Set environment variables
ENV AWS_S3_ENDPOINT=eodata.dataspace.copernicus.eu \
# AWS_ACCESS_KEY_ID=ACCESS \
# AWS_SECRET_ACCESS_KEY=DATA \
AWS_HTTPS=YES \
AWS_VIRTUAL_HOSTING=FALSE
# You can uncomment and set the working directory if needed
# WORKDIR /app
# COPY . .