initial commit
This commit is contained in:
+23
@@ -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"]
|
||||
Reference in New Issue
Block a user