Skip to content
Snippets Groups Projects
Dockerfile 623 B
Newer Older
  • Learn to ignore specific revisions
  • Jesper Zedlitz's avatar
    Jesper Zedlitz committed
    FROM alpine
    
    # Install necessary system dependencies
    RUN apk add --no-cache poetry proj-util gdal-dev gcc python3-dev musl-dev geos-dev proj-dev libmagic
    
    # Set the PATH for pipx
    ENV PATH="/root/.local/bin:${PATH}"
    
    # 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"]