PJDEMO / Dockerfile
oriqqqqqqat
modify
98c1616
raw
history blame contribute delete
430 Bytes
FROM python:3.10
WORKDIR /code
# --- เพิ่มท่อนนี้เข้าไปครับ ---
# สั่ง update linux และลง libgl1
RUN apt-get update && apt-get install -y libgl1
# -------------------------
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . .
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]