nekmo-dirhunt
SUCCESS
6m 08s
History Source
SummaryIterations1Transcript9Dockerfile
Dockerfile33 lines · 810 chars
# Dockerfile for dirhunt - build from source using Python 3.12 on Debian Bookworm
FROM python:3.12.13-bookworm

# Set working directory
WORKDIR /app

# Install build dependencies (needed for some Python packages)
RUN apt-get update \
    && apt-get install -y --no-install-recommends \
        build-essential \
        libffi-dev \
        libssl-dev \
    && rm -rf /var/lib/apt/lists/*

# Copy requirements first to leverage Docker cache
COPY requirements.txt .

# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Copy the rest of the application code
COPY . .

# Build and install the package from source
RUN pip install --no-cache-dir .

# Ensure Python output is not buffered
ENV PYTHONUNBUFFERED=1

# Entrypoint and default command
ENTRYPOINT ["dirhunt"]
CMD ["--help"]