20 lines
408 B
Docker
20 lines
408 B
Docker
FROM python:3.10-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Copier les fichiers de dépendances
|
|
COPY pyproject.toml poetry.lock ./
|
|
|
|
# Installer Poetry et les dépendances
|
|
RUN pip install poetry && \
|
|
poetry config virtualenvs.create false && \
|
|
poetry install --no-dev
|
|
|
|
# Copier le code
|
|
COPY src/ ./src/
|
|
|
|
# Version de l'image
|
|
LABEL version="1.0.0"
|
|
LABEL description="CS:GO MLOps Platform"
|
|
|
|
CMD ["python", "src/api/main.py"] |