Skip to content
Snippets Groups Projects
Dockerfile 867 B
Newer Older
  • Learn to ignore specific revisions
  • Jesper Zedlitz's avatar
    Jesper Zedlitz committed
    
    # Install necessary system dependencies
    
    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
    
    Jesper Zedlitz's avatar
    Jesper Zedlitz committed
    
    
    Jesper Zedlitz's avatar
    Jesper Zedlitz committed
    ENV PATH="/root/.local/bin:${PATH}"
    
    
    # Install poetry using pipx
    RUN pipx install poetry
    
    
    Jesper Zedlitz's avatar
    Jesper Zedlitz committed
    # 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"]