0355d21d47
- Dependencia editable indicadores-kit y Python >=3.12 (el kit lo pide).
- Dockerfile copia indicadores_kit/.
- GET /tea/indicadores y GET /tea/indicadores/<id>/figuras/<figura>
(periodos y tema opcionales; 400 y 404 con {"error": ...}).
- GET /tea/pacientes/<int:pac_id>.
- Pruebas de TEA con base temporal por TEA_DATABASE_URL.
25 lines
686 B
Docker
25 lines
686 B
Docker
# Build context is the ISSSTELEON repo root (see root docker-compose.yml)
|
|
# so this Dockerfile can COPY its sibling Core/, Persistance/, models/ and indicadores_kit/.
|
|
FROM python:3.12-slim
|
|
|
|
RUN pip install --no-cache-dir uv
|
|
|
|
WORKDIR /app
|
|
COPY Core/ Core/
|
|
COPY Persistance/ Persistance/
|
|
COPY models/ models/
|
|
COPY indicadores_kit/ indicadores_kit/
|
|
COPY WebApi/ WebApi/
|
|
|
|
RUN cd Persistance && uv sync --no-dev
|
|
RUN cd WebApi && uv sync --no-dev
|
|
|
|
ENV CACU_DATABASE_URL=sqlite:////data/cacu.db
|
|
ENV CAMA_DATABASE_URL=sqlite:////data/cama.db
|
|
ENV TEA_DATABASE_URL=sqlite:////data/tea.db
|
|
|
|
RUN chmod +x /app/WebApi/docker-entrypoint.sh
|
|
|
|
EXPOSE 5000
|
|
ENTRYPOINT ["/app/WebApi/docker-entrypoint.sh"]
|