initial commit

This commit is contained in:
Roberto Treviño Cervantes
2026-09-21 10:23:40 -06:00
commit c1444e2b8d
11 changed files with 220 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
# Build context is the ISSSTELEON repo root (see root docker-compose.yml)
# so this Dockerfile can COPY its sibling Core/, Persistance/ and models/.
FROM python:3.12-slim
RUN pip install --no-cache-dir uv
WORKDIR /app
COPY Core/ Core/
COPY Persistance/ Persistance/
COPY models/ models/
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"]