forked from beriberikix/zephyr-simulator-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.emulator
More file actions
25 lines (21 loc) · 823 Bytes
/
Dockerfile.emulator
File metadata and controls
25 lines (21 loc) · 823 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
# Minimal base image for running Zephyr native_sim binaries
FROM debian:bookworm-slim
# Install runtime dependencies for native_sim binaries.
# - Add i386 architecture and install i386 libc/libgcc/libstdc++ for 32-bit native_sim builds.
# - passt provides the `pasta` binary used for transparent TCP/UDP forwarding.
RUN dpkg --add-architecture i386 \
&& apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
libc6 \
libstdc++6 \
libc6:i386 \
libstdc++6:i386 \
libgcc-s1:i386 \
passt \
&& rm -rf /var/lib/apt/lists/*
# Create directories for session mounts
RUN mkdir -p /emu /tmp/uart
# Set default working directory
WORKDIR /emu
# Default command: sleep indefinitely (binary will be copied and executed)
CMD ["sh", "-c", "while true; do sleep 3600; done"]