Add daemon submodule and Docker support
Update .gitignore and README.md
Add .gitreview file
Change-Id: If4800ae668ecc38cf64bfca540c6f0731541fb42
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..2ef623b
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,67 @@
+FROM ubuntu:22.04
+
+WORKDIR /app
+COPY . .
+
+ARG DEBIAN_FRONTEND=noninteractive
+RUN apt-get update && apt-get install -y \
+ autoconf \
+ automake \
+ autopoint \
+ bison \
+ build-essential \
+ cmake \
+ curl \
+ git \
+ libasound2-dev \
+ libdbus-1-dev \
+ libexpat1-dev \
+ libpulse-dev \
+ libtool \
+ libudev-dev \
+ libva-dev \
+ libvdpau-dev \
+ nasm \
+ pkg-config \
+ yasm
+
+# Install Node
+RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && \
+ apt-get install -y nodejs && \
+ npm install -g node-gyp
+
+# Install latest Swig (4.1)
+WORKDIR /swig
+RUN git clone https://github.com/swig/swig.git && \
+ cd swig && \
+ ./autogen.sh && \
+ ./configure && \
+ make -j$(nproc) && \
+ make install
+
+WORKDIR /app/daemon
+
+# Build daemon dependencies
+RUN mkdir -p contrib/native && \
+ cd contrib/native && \
+ ../bootstrap && \
+ make -j$(nproc)
+
+# Build the daemon
+RUN ./autogen.sh && \
+ ./configure --with-nodejs && \
+ make -j$(nproc)
+
+WORKDIR /app
+
+RUN apt-get update && apt-get install -y \
+ lldb \
+ liblldb-dev
+
+ENV LD_LIBRARY_PATH=/app/daemon/src/.libs
+ENV SECRET_KEY_BASE=test123
+RUN npm install && \
+ ln -s /app/daemon/bin/nodejs/build/Release/jamid.node jamid.node && \
+ npm run build
+
+CMD ["npm", "start"]