| |
| FROM python:3.10-slim |
|
|
| |
| WORKDIR /app |
|
|
| |
| RUN apt-get update && apt-get install -y \ |
| git \ |
| build-essential \ |
| libpq-dev \ |
| libgl1 \ |
| libopencv-dev \ |
| libblas-dev \ |
| liblapack-dev \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| |
| RUN git clone https://github.com/rupeshs/fastsdcpu.git . |
|
|
| |
| RUN python -m venv env |
|
|
| |
| ENV HF_HOME=/app/.cache/huggingface \ |
| OPENVINO_TELEMETRY_DIR=/app/telemetry |
|
|
| |
| RUN mkdir -p /app/.cache/huggingface /app/telemetry /app/configs /app/results && \ |
| chmod -R 777 /app/.cache /app/telemetry /app/configs /app/results |
|
|
| |
| RUN . env/bin/activate && pip install --no-cache-dir -r requirements.txt |
|
|
| |
| RUN chmod +x start-webserver.sh |
|
|
| |
| |
|
|
| |
| CMD ["./start-webserver.sh"] |