-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
48 lines (34 loc) · 1.01 KB
/
Dockerfile
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM node:18-slim
# Install system dependencies
RUN apt-get update && apt-get install -y \
libfuse2 \
curl \
ca-certificates \
git \
libdbus-1-3 \
dbus \
g++ \
cmake \
&& rm -rf /var/lib/apt/lists/*
# Create DBus system directory and configure
RUN mkdir -p /var/run/dbus \
&& dbus-uuidgen > /var/lib/dbus/machine-id
# Create app directory and clone repository
WORKDIR /app
RUN git clone https://github.com/Affirmatech/MeshSense.git .
WORKDIR /app/MeshSense
COPY removeBt.patch /removeBt.patch
RUN git apply /removeBt.patch
# Install dependencies
RUN echo "Installing UI dependencies..." && \
cd ui && npm install --legacy-peer-deps && cd .. && \
echo "Installing API dependencies..." && \
cd api && npm install --legacy-peer-deps && cd ..
# Expose ports
EXPOSE 5920 5921
ENV ACCESS_KEY=NoSecrets
# Start script
COPY start.sh /start.sh
RUN chmod +x /start.sh
ENTRYPOINT ["/bin/bash", "-c", "dbus-daemon --system --fork && /start.sh"]
# Start DBus and the application