Newer
Older

Thorge Petersen
committed
FROM python:3.10

Thorge Petersen
committed
RUN apt-get update && \
apt-get install -y \
libgdal-dev \
libmagic-dev \
gcc \
python3-dev \
musl-dev \
libgeos-dev \
libproj-dev \
&& python3 -m pip install --upgrade pip \
&& python3 -m pip install pipx \
&& python3 -m pipx ensurepath

Thorge Petersen
committed
# Ensure pipx is in the PATH

Thorge Petersen
committed
# Install poetry using pipx
RUN pipx install poetry
# Set the working directory inside the container
WORKDIR /app
# Copy the entire project to the container's working directory
COPY . .
# Install project dependencies with Poetry
RUN poetry install --no-interaction --no-ansi
# Make the main script executable
RUN chmod +x dcat_catalog_check.py
# Specify the entry point to run the script by default
ENTRYPOINT ["poetry", "run", "./dcat_catalog_check.py"]