/
mellcorn
/
vector-search
Обзор
Документация
Войти
/
mellcorn
/
vector-search
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
Dockerfile
34 строки
743 B
Alex
tests + docker
16 июл 2025, 02:11
16 июл 2025, 02:11
33501aa
Код
Авторство
О чём код?
# Use official Python image FROM python:3.12-slim # Set environment variables ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONUNBUFFERED 1 # Set work directory WORKDIR /app # Install system dependencies RUN apt-get update && \ apt-get install -y build-essential libgl1-mesa-glx && \ rm -rf /var/lib/apt/lists/* # Copy requirements COPY requirements.txt ./ # Install Python dependencies RUN pip install --upgrade pip && \ pip install --no-cache-dir -r requirements.txt # Copy project files COPY . . # Expose port EXPOSE 5000 # Set environment for Flask ENV FLASK_APP=app/api.py ENV FLASK_RUN_HOST=0.0.0.0 # Run the Flask app (use gunicorn for production) CMD ["gunicorn", "app.api:app", "--bind", "0.0.0.0:5000", "--workers", "2"]