mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-27 16:10:32 +00:00
Add Dockerfile to build and run meshchat
This commit is contained in:
parent
de5b85360d
commit
a06f50b911
1 changed files with 29 additions and 0 deletions
29
Dockerfile
Normal file
29
Dockerfile
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# Build the frontend
|
||||
FROM node:20-bookworm-slim AS build-frontend
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
COPY *.json .
|
||||
COPY *.js .
|
||||
COPY src/frontend ./src/frontend
|
||||
|
||||
RUN npm install --omit=dev && \
|
||||
npm install tailwindcss && \
|
||||
npm run build-frontend
|
||||
|
||||
# Main app build
|
||||
FROM python:3.11-bookworm
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY ./requirements.txt .
|
||||
COPY --from=build-frontend /src/public public
|
||||
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
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", "--headless"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue