|
FROM python:3.10 |
|
|
|
|
|
RUN apt-get update && apt-get install -y ffmpeg libsm6 libxext6 libgl1-mesa-glx git nodejs npm |
|
|
|
|
|
COPY . /app |
|
WORKDIR /app |
|
|
|
|
|
RUN pip install --upgrade pip |
|
RUN pip install -r requirements.txt |
|
|
|
|
|
WORKDIR /app/web_app |
|
RUN npm install && npm run build |
|
|
|
|
|
RUN mkdir -p /app/iopaint/web_app && cp -r dist/* /app/iopaint/web_app/ |
|
|
|
|
|
WORKDIR /app |
|
|
|
|
|
ENV XDG_CACHE_HOME=/tmp/.cache |
|
ENV PORT 7860 |
|
|
|
|
|
CMD ["python3", "main.py", "start", "--model", "lama", "--port", "7860", "--host", "0.0.0.0", "--model-dir", "/tmp/models"] |