Create Docker-Deploy
Browse files- Docker-Deploy +12 -0
Docker-Deploy
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Polyglot-Sim-Engine.Dockerfile
|
| 2 |
+
FROM debian:12-slim AS builder
|
| 3 |
+
RUN apt update && apt install -y gcc-15 g++-15 rustc julia python3.13-dev
|
| 4 |
+
|
| 5 |
+
FROM python:3.13-nogil AS runtime
|
| 6 |
+
COPY --from=builder /usr/bin/gcc-15 /usr/bin/gcc
|
| 7 |
+
COPY --from=builder /usr/bin/rustc /usr/bin/rustc
|
| 8 |
+
COPY --from=builder /usr/bin/julia /usr/bin/julia
|
| 9 |
+
COPY . /quantarion
|
| 10 |
+
RUN pip install numpy torch graalvm
|
| 11 |
+
EXPOSE 8080
|
| 12 |
+
CMD ["python", "Polyglot-Sim-Engine.py", "--polyglot", "--cycles", "1e6"]
|