mirror of
http://100.103.83.12:3003/fegger/pv-agent.git
synced 2026-09-17 16:06:23 +00:00
19 lines
375 B
Docker
19 lines
375 B
Docker
FROM python:3.12-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1 \
|
|
PIP_DISABLE_PIP_VERSION_CHECK=1 \
|
|
PIP_NO_CACHE_DIR=1
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements-runtime.txt ./
|
|
RUN python -m pip install --no-cache-dir -r requirements-runtime.txt
|
|
|
|
COPY agent/ ./agent/
|
|
COPY web/ ./web/
|
|
|
|
EXPOSE 8080
|
|
|
|
CMD ["python", "-m", "agent.cli", "serve", "--host", "0.0.0.0"]
|