mirror of
https://github.com/hongguang1994/SimNexus.git
synced 2026-11-22 21:29:38 +08:00
支持多 USB 4G 模块管理、实时信号监控、短信收发及定时自动发送任务。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
13 lines
325 B
Docker
13 lines
325 B
Docker
FROM python:3.12-slim
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
modemmanager libdbus-1-dev libglib2.0-dev \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY app ./app
|
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|