-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (32 loc) · 1011 Bytes
/
Copy pathDockerfile
File metadata and controls
43 lines (32 loc) · 1011 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
35
36
37
38
39
40
41
42
43
# PyGuard Docker Image
# Provides a containerized environment for running PyGuard
FROM python:3.13.9-slim
LABEL maintainer="Chad Boyd <your.email@example.com>"
LABEL description="PyGuard - Python QA and Auto-Fix Tool"
LABEL version="0.6.0"
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first for better caching
COPY pyproject.toml setup.py ./
COPY README.md LICENSE ./
# Install PyGuard
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -e .
# Copy application code
COPY pyguard/ ./pyguard/
COPY config/ ./config/
COPY docs/ ./docs/
# Create directories for logs and backups
RUN mkdir -p /app/logs /app/backups
# Set up volume mount points
VOLUME ["/code", "/app/logs", "/app/backups"]
# Set default command
ENTRYPOINT ["pyguard"]
CMD ["--help"]
# Usage:
# Build: docker build -t pyguard .
# Run: docker run -v $(pwd):/code pyguard /code