mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2025-12-22 10:57:12 +00:00
34 lines
758 B
Docker
34 lines
758 B
Docker
# Build the frontend
|
|
FROM node:20-bookworm-slim AS build-frontend
|
|
|
|
WORKDIR /src
|
|
|
|
# Copy required source files
|
|
COPY *.json .
|
|
COPY *.js .
|
|
COPY src/frontend ./src/frontend
|
|
|
|
# Install NodeJS deps, exluding electron
|
|
RUN npm install --omit=dev && \
|
|
npm run build-frontend
|
|
|
|
# Main app build
|
|
FROM python:3.11-bookworm
|
|
|
|
WORKDIR /app
|
|
|
|
# Install Python deps
|
|
COPY ./requirements.txt .
|
|
RUN pip install -r requirements.txt
|
|
|
|
# Copy prebuilt frontend
|
|
COPY --from=build-frontend /src/public public
|
|
|
|
# Copy other required source files
|
|
COPY *.py .
|
|
COPY src/__init__.py ./src/__init__.py
|
|
COPY src/backend ./src/backend
|
|
COPY *.json .
|
|
|
|
CMD ["python", "meshchat.py", "--host=0.0.0.0", "--reticulum-config-dir=/config/.reticulum", "--storage-dir=/config/.meshchat", "--headless"]
|