-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (21 loc) · 751 Bytes
/
Dockerfile
File metadata and controls
25 lines (21 loc) · 751 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
FROM ubuntu:24.04
# Install all necessary tooling and dependencies for building the custom C++17 client
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
libssl-dev \
libevdev-dev \
pkg-config \
x11-xserver-utils \
git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY . /app
# Compile project
RUN mkdir build && cd build && cmake .. && make
# Entrypoint runs the resulting binary.
# Note: For this image to function, you must run it with access to the host input subsystem:
# docker run --device /dev/uinput:/dev/uinput ...
# Pass WINDOWS_IP and SECURITY_KEY at runtime:
# docker run --device /dev/uinput:/dev/uinput mwb-linux <WINDOWS_IP> <SECURITY_KEY>
ENTRYPOINT ["/app/build/mwb_client"]