diff --git a/Dockerfile b/Dockerfile index 5ab2f49..7d8358e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ FROM node:20-slim AS frontend-builder WORKDIR /build COPY frontend/package*.json ./ -RUN npm ci +RUN npm install COPY frontend/ ./ RUN npm run build diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..feed822 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,31 @@ +services: + remoteterm: + build: . + ports: + - "8000:8000" + volumes: + - meshcore-data:/app/data + environment: + # Radio connection — set ONE of the following transport options: + + # Serial (USB) — also uncomment the `devices` section below + # MESHCORE_SERIAL_PORT: /dev/ttyUSB0 + # MESHCORE_SERIAL_BAUDRATE: 115200 + + # TCP + # MESHCORE_TCP_HOST: 192.168.1.100 + # MESHCORE_TCP_PORT: 5000 + + # BLE + # MESHCORE_BLE_ADDRESS: AA:BB:CC:DD:EE:FF + # MESHCORE_BLE_PIN: "" + + MESHCORE_LOG_LEVEL: INFO + MESHCORE_DATABASE_PATH: data/meshcore.db + # Uncomment to pass through a USB serial device: + # devices: + # - /dev/ttyUSB0:/dev/ttyUSB0 + restart: unless-stopped + +volumes: + meshcore-data: