9 lines
365 B
Docker
9 lines
365 B
Docker
FROM python:3.11-slim
|
|
WORKDIR /app
|
|
COPY requirements.txt .
|
|
RUN apt-get update && apt-get install -y --no-install-recommends iputils-ping iproute2 && rm -rf /var/lib/apt/lists/* && pip install --no-cache-dir -r requirements.txt
|
|
COPY app.py index.html ./
|
|
ENV CONFIG_PATH=/data/config.json
|
|
EXPOSE 8025
|
|
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8025"]
|