Files
myorg-assistant/Dockerfile
Roger Oriol 5215cd9b75
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 24m31s
add start.sh script in dockerfiles
2026-02-08 14:38:18 +01:00

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"]