FROM python:3.10-slim | |
WORKDIR /app | |
COPY . . | |
# ติดตั้ง libgl ที่ขาดไป | |
RUN apt-get update && apt-get install -y libgl1 | |
# ติดตั้ง Python packages | |
RUN pip install --no-cache-dir -r requirements.txt | |
# รันแอป | |
CMD ["python", "app.py"] | |
FROM python:3.10-slim | |
WORKDIR /app | |
COPY . . | |
# ติดตั้ง libgl ที่ขาดไป | |
RUN apt-get update && apt-get install -y libgl1 | |
# ติดตั้ง Python packages | |
RUN pip install --no-cache-dir -r requirements.txt | |
# รันแอป | |
CMD ["python", "app.py"] | |