26 lines
692 B
Docker
26 lines
692 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Install system deps for cryptography
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
build-essential libffi-dev \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt supervisor
|
|
|
|
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
|
COPY config/ /app/config/
|
|
COPY app/ /app/app/
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
# Data volumes for persistent Reticulum state and LXMF storage
|
|
VOLUME ["/data/reticulum", "/data/lxmf"]
|
|
|
|
EXPOSE 4242 8000
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
CMD ["supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
|