From ee5e85f2b242b7f11153d25589df7e61b26b755c Mon Sep 17 00:00:00 2001 From: Matt Date: Sat, 7 Jun 2025 15:28:06 -0400 Subject: [PATCH] import dockerfile --- Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ee5f5ee --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM alpine:latest AS build +ARG GIT_REF="main" +WORKDIR /src +RUN apk add git cmake nodejs npm alpine-sdk dbus-dev +COPY . . +#RUN git clone --recurse-submodules --branch ${GIT_REF} https://github.com/Affirmatech/MeshSense.git . +# Web Bluetooth +RUN cd api/webbluetooth && npm i && npm run build:all +# Meshtastic JS +RUN cd api/meshtastic-js && npm i && npm run build +# Install dependencies +RUN cd ui && npm i && cd ../api && npm i +# Build +RUN cd ui && npm run build && cd ../api && npm run build + +FROM alpine:latest +WORKDIR /app +RUN apk add nodejs dbus-dev +COPY --from=build /src/api/dist /app +CMD ["node", "index.cjs"]