30 lines
530 B
Docker
30 lines
530 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/
|
|
|
|
# Copy start script
|
|
COPY start.sh .
|
|
RUN chmod +x start.sh
|
|
|
|
# Create data directory for myorg repo
|
|
RUN mkdir -p /data/myorg
|
|
|
|
# Expose web interface port
|
|
EXPOSE 8000
|
|
|
|
# Run application
|
|
CMD ["python", "-m", "src.main"]
|