Files
api7-demo/web/Dockerfile
d.viti d17e356fcd
Some checks failed
Helm Chart Build / lint-only (push) Has been skipped
Helm Chart Build / build-helm (push) Successful in 8s
Build and Deploy / build-web (push) Failing after 45s
Build and Deploy / build-api (push) Successful in 53s
Simplify Docker build workflow and update routing rules
2025-10-07 18:31:56 +02:00

25 lines
478 B
Docker

FROM python:3.11-slim
WORKDIR /app
# Copy requirements first for better caching
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy application and documentation
COPY main.py .
COPY docs/ ./docs/
COPY static/ ./static/
COPY mkdocs.yml .
# Build documentation during image build
RUN mkdocs build -d site
# Expose port
EXPOSE 8000
# Run the application
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]