2026-01-25 12:07:21 +01:00
|
|
|
# Dockerfile
|
|
|
|
|
FROM python:3.11-slim
|
|
|
|
|
|
2026-01-25 17:24:46 +01:00
|
|
|
# Ajouter le dépôt Debian Testing pour les paquets plus récents
|
|
|
|
|
RUN echo "deb http://deb.debian.org/debian testing main" \
|
|
|
|
|
> /etc/apt/sources.list.d/testing.list
|
|
|
|
|
|
2026-01-25 12:07:21 +01:00
|
|
|
WORKDIR /app
|
|
|
|
|
|
2026-01-25 17:24:46 +01:00
|
|
|
# Installer les outils de développement Go et Rust
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
|
apt-get install -y \
|
|
|
|
|
clang \
|
|
|
|
|
llvm-dev \
|
|
|
|
|
libclang-dev \
|
|
|
|
|
pkg-config \
|
|
|
|
|
build-essential \
|
|
|
|
|
git \
|
|
|
|
|
make \
|
|
|
|
|
curl \
|
|
|
|
|
nodejs \
|
|
|
|
|
npm \
|
|
|
|
|
pylint \
|
|
|
|
|
black \
|
|
|
|
|
flake8 \
|
|
|
|
|
mypy \
|
|
|
|
|
isort
|
|
|
|
|
|
|
|
|
|
COPY tools tools
|
|
|
|
|
|
|
|
|
|
# Installer la dernière version de Go
|
|
|
|
|
RUN bash tools/install_latest_go.sh
|
|
|
|
|
ENV PATH=/usr/local/go/bin:$PATH
|
|
|
|
|
|
|
|
|
|
# Installer la dernière version de Rust
|
|
|
|
|
ENV RUSTUP_HOME=/usr/local/rustup
|
|
|
|
|
ENV CARGO_HOME=/usr/local/cargo
|
|
|
|
|
ENV PATH=/usr/local/cargo/bin:$PATH
|
|
|
|
|
RUN curl https://sh.rustup.rs -sSf \
|
|
|
|
|
| sh -s -- -y --default-toolchain stable \
|
|
|
|
|
&& rustup install nightly \
|
|
|
|
|
&& rustup component add rustfmt clippy rust-src rust-docs \
|
|
|
|
|
&& cargo install cargo-edit cargo-watch cargo-outdated cargo-make cargo-binstall
|
|
|
|
|
|
|
|
|
|
# Installer la dernière version de typscript
|
|
|
|
|
RUN npm install -g typescript tsc @types/node eslint prettier
|
|
|
|
|
|
|
|
|
|
RUN cargo binstall --strategies crate-meta-data jj-cli
|
|
|
|
|
|
2026-01-25 12:07:21 +01:00
|
|
|
# Installer le SDK MCP Python
|
2026-01-25 17:24:46 +01:00
|
|
|
RUN pip install --no-cache-dir ruff fastmcp ipython
|
2026-01-25 12:07:21 +01:00
|
|
|
|
|
|
|
|
# Copier le serveur
|
2026-01-25 17:24:46 +01:00
|
|
|
COPY src .
|
2026-01-25 12:07:21 +01:00
|
|
|
|
|
|
|
|
# Exposer le port
|
|
|
|
|
EXPOSE 6666
|
2026-01-25 17:24:46 +01:00
|
|
|
ENV OLLAMA_ADDR="http://host.docker.internal:11434"
|
2026-01-25 12:07:21 +01:00
|
|
|
|
|
|
|
|
# Lancer le serveur
|
2026-01-25 17:24:46 +01:00
|
|
|
CMD ["python", "./PMOCrazyCoder.py"]
|