26 lines
471 B
Docker
26 lines
471 B
Docker
|
|
FROM python:3.11-slim
|
||
|
|
|
||
|
|
# Install git
|
||
|
|
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
||
|
|
|
||
|
|
# Set working directory
|
||
|
|
WORKDIR /app
|
||
|
|
|
||
|
|
# Copy requirements
|
||
|
|
COPY requirements.txt .
|
||
|
|
|
||
|
|
# Install dependencies
|
||
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
||
|
|
|
||
|
|
# Copy application code
|
||
|
|
COPY src/ ./src/
|
||
|
|
|
||
|
|
# Create data directory for myorg repo
|
||
|
|
RUN mkdir -p /data/myorg
|
||
|
|
|
||
|
|
# Expose web interface port
|
||
|
|
EXPOSE 8000
|
||
|
|
|
||
|
|
# Run application
|
||
|
|
CMD ["python", "-m", "src.main"]
|