Skip to content
Snippets Groups Projects
Dockerfile 650 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-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"]