-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (25 loc) · 841 Bytes
/
Copy pathDockerfile
File metadata and controls
34 lines (25 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM python:3.11-slim
LABEL maintainer="Flamehaven Labs <info@flamehaven.space>"
LABEL description="AI SLOP Detector - Production-ready code quality analyzer"
LABEL version="2.0.0"
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy project files
COPY pyproject.toml README.md ./
COPY src/ ./src/
# Install Python dependencies
RUN pip install --no-cache-dir -e .
# Create non-root user
RUN useradd -m -u 1000 slopuser && \
chown -R slopuser:slopuser /app
USER slopuser
# Default command
ENTRYPOINT ["slop-detector"]
CMD ["--help"]
# Health check
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD slop-detector --version || exit 1