Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
- Honeypot listens on port 5010 - Dashboard listens on port 5123 at URL / - Add app_dashboard.py as standalone FastAPI app - Add start.sh to launch both uvicorn processes - Fix dashboard_path computation to return "" at root (avoid double-slash URLs) - Update Dockerfile, docker-compose.yaml, config.yaml, config.py Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
33 lines
800 B
Docker
33 lines
800 B
Docker
FROM python:3.13-slim
|
|
|
|
LABEL org.opencontainers.image.source=https://github.com/BlessedRebuS/Krawl
|
|
|
|
WORKDIR /app
|
|
|
|
# Install gosu for dropping privileges
|
|
RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends gosu && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements.txt /app/
|
|
RUN pip install --no-cache-dir --upgrade pip && \
|
|
pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY src/ /app/src/
|
|
COPY wordlists.json /app/
|
|
COPY entrypoint.sh /app/
|
|
COPY start.sh /app/
|
|
COPY config.yaml /app/
|
|
|
|
RUN useradd -m -u 1000 krawl && \
|
|
mkdir -p /app/logs /app/data /app/exports && \
|
|
chown -R krawl:krawl /app && \
|
|
chmod +x /app/entrypoint.sh /app/start.sh
|
|
|
|
EXPOSE 5010
|
|
EXPOSE 5123
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
ENTRYPOINT ["/app/entrypoint.sh"]
|
|
CMD ["/app/start.sh"]
|