-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (24 loc) · 819 Bytes
/
Dockerfile
File metadata and controls
31 lines (24 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM python:3.11-slim AS builder
WORKDIR /build
COPY pyproject.toml README.md LICENSE ./
COPY eosim/ eosim/
COPY platforms/ platforms/
RUN pip install --no-cache-dir build && \
python -m build --wheel && \
pip install --no-cache-dir dist/*.whl
FROM python:3.11-slim
RUN apt-get update && \
apt-get install -y --no-install-recommends \
qemu-system-arm \
qemu-system-aarch64 \
qemu-system-riscv64 \
qemu-system-x86 \
qemu-system-mips && \
rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages
COPY --from=builder /usr/local/bin/eosim /usr/local/bin/eosim
COPY platforms/ /opt/eosim/platforms/
COPY examples/ /opt/eosim/examples/
WORKDIR /opt/eosim
ENTRYPOINT ["eosim"]
CMD ["--help"]