11 lines
392 B
Docker
11 lines
392 B
Docker
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
|
|
EXPOSE 8080
|
|
CMD ["python", "/app/app.py"]
|