Skip to content
Snippets Groups Projects
Commit 7cecc62c authored by Arthur Duflot's avatar Arthur Duflot
Browse files

push base image

parent 8dfe2b00
No related branches found
No related tags found
No related merge requests found
Pipeline #11914 failed with stages
in 0 seconds
FROM python:3.12.1-bookworm
# Update package lists and install necessary packages
RUN rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y \
libproj-dev libgeos-dev libgdal-dev \
wget vim curl\
# Create a virtual environment and activate it
RUN python3 -m venv venv
# to know GDAL version use gdal-config --version
RUN . venv/bin/activate && pip3 install geopandas matplotlib scipy scikit-image wheel GDAL==3.0.4 scikit-learn rasterio
COPY ./build/entrypoint.sh /opt
RUN chmod +x /opt/entrypoint.sh
# Add application
# Clean up the image
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
# Set the entry point or command if needed
ENTRYPOINT ["/opt/entrypoint.sh"]
\ No newline at end of file
#!/bin/bash
set -x
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
VALID_ARGS=$(getopt -o b:c: --long bbox:compute -- "$@")
if [[ $? -ne 0 ]]; then
exit 1;
fi
eval set -- "$VALID_ARGS"
while [ : ]; do
case "$1" in
-b | --bbox)
BBOX=$2
shift 2
;;
-c | --compute)
COMPUTE=$2
shift 2
;;
--) shift;
break
;;
esac
done
echo ${BBOX}
echo ${COMPUTE}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment