Files
xc-agent-cloud-probe/Dockerfile

12 lines
436 B
Docker
Raw Permalink Normal View History

FROM modelhubxc-4pd.tencentcloudcr.com/xc_agent_platform/python:3.11-slim
ENV PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt /app/requirements.txt
COPY requirements.lock /app/requirements.lock
COPY wheels /wheels
RUN pip install --no-cache-dir --no-index --find-links=/wheels --require-hashes -r /app/requirements.lock
COPY app.py /app/app.py
COPY network_probe.py /app/network_probe.py
EXPOSE 8080
CMD ["python", "/app/app.py"]