Files
microdao-daarion/devtools-backend/Dockerfile

31 lines
732 B
Docker

# DevTools Backend Dockerfile
FROM python:3.11-slim
LABEL maintainer="DAARION.city Team"
LABEL description="DevTools Backend - Development tools service"
LABEL version="0.2.0"
WORKDIR /app/devtools-backend
# Install system dependencies
RUN apt-get update && apt-get install -y \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
RUN pip install --no-cache-dir \
fastapi==0.109.0 \
uvicorn==0.27.0 \
pydantic==2.5.3
# Copy devtools backend code
COPY . .
EXPOSE 8008
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl -f http://localhost:8008/health || exit 1
CMD ["python", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8008"]