Spaces:
Sleeping
Sleeping
build docker image externally
Browse files- Dockerfile +1 -15
- docker_build/Dockerfile +29 -0
Dockerfile
CHANGED
|
@@ -1,19 +1,5 @@
|
|
| 1 |
-
|
| 2 |
-
FROM mathcomp/mathcomp-dev:rocq-prover-9.0
|
| 3 |
|
| 4 |
-
# ===== Install Coq-LSP + PET =====
|
| 5 |
-
RUN opam update && \
|
| 6 |
-
opam install -y logs lwt coq-lsp
|
| 7 |
-
|
| 8 |
-
# ===== Install Python + FastAPI =====
|
| 9 |
-
RUN apt-get update && apt-get install -y python3 python3-pip git curl && \
|
| 10 |
-
pip install --no-cache-dir fastapi uvicorn requests
|
| 11 |
-
|
| 12 |
-
# ===== Install pytanque from GitHub =====
|
| 13 |
-
RUN git clone https://github.com/LLM4Rocq/pytanque.git /tmp/pytanque && \
|
| 14 |
-
pip install -e /tmp/pytanque && \
|
| 15 |
-
rm -rf /tmp/pytanque
|
| 16 |
-
|
| 17 |
# ===== Copy App =====
|
| 18 |
WORKDIR /app
|
| 19 |
COPY app.py /app
|
|
|
|
| 1 |
+
FROM docker.io/theostos/rocq-pet-server-mathcomp:9.0
|
|
|
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
# ===== Copy App =====
|
| 4 |
WORKDIR /app
|
| 5 |
COPY app.py /app
|
docker_build/Dockerfile
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ===== Base Rocq + MathComp =====
|
| 2 |
+
FROM mathcomp/mathcomp-dev:rocq-prover-9.0
|
| 3 |
+
|
| 4 |
+
# ===== Install Coq-LSP + PET =====
|
| 5 |
+
RUN opam update && \
|
| 6 |
+
opam install -y logs lwt coq-lsp
|
| 7 |
+
|
| 8 |
+
# ===== Install Miniconda (clean Python env) =====
|
| 9 |
+
USER root
|
| 10 |
+
ENV CONDA_DIR=/opt/conda
|
| 11 |
+
RUN apt-get update && apt-get install -y wget bzip2 && \
|
| 12 |
+
wget -q https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /tmp/miniconda.sh && \
|
| 13 |
+
bash /tmp/miniconda.sh -b -p $CONDA_DIR && \
|
| 14 |
+
rm /tmp/miniconda.sh && \
|
| 15 |
+
$CONDA_DIR/bin/conda clean -afy
|
| 16 |
+
ENV PATH=$CONDA_DIR/bin:$PATH
|
| 17 |
+
|
| 18 |
+
RUN conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main && \
|
| 19 |
+
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r
|
| 20 |
+
|
| 21 |
+
RUN conda create -y -n petanque python=3.11 fastapi uvicorn requests && \
|
| 22 |
+
conda clean -afy
|
| 23 |
+
ENV PATH=$CONDA_DIR/envs/appenv/bin:$PATH
|
| 24 |
+
|
| 25 |
+
# ===== Install pytanque from GitHub =====
|
| 26 |
+
RUN git clone https://github.com/LLM4Rocq/pytanque.git /tmp/pytanque && \
|
| 27 |
+
pip install -e /tmp/pytanque && \
|
| 28 |
+
rm -rf /tmp/pytanque
|
| 29 |
+
|