Files
goplt/docs/Dockerfile

27 lines
551 B
Docker

# Dockerfile for MkDocs documentation
FROM python:3.11-slim
WORKDIR /docs
# Install system dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first for better caching
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy all documentation files
COPY . .
# Expose MkDocs default port
EXPOSE 8000
# Default command: serve documentation
CMD ["mkdocs", "serve", "--dev-addr=0.0.0.0:8000"]