/
githubmirror
/
PromethAI-Backend
Обзор
Документация
Войти
/
githubmirror
/
PromethAI-Backend
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
0.0.1
Dockerfile
43 строки
1 KB
vasa
disable playwright for now
15 июн 2023, 23:40
15 июн 2023, 23:40
a122df9
Код
Авторство
О чём код?
FROM python:3.11-slim # Set build argument ARG API_ENABLED # Set environment variable based on the build argument ENV API_ENABLED=${API_ENABLED} \ PIP_NO_CACHE_DIR=true ENV PATH="${PATH}:/root/.poetry/bin" RUN pip install poetry WORKDIR /app #COPY requirements.txt /tmp/requirements.txt #RUN pip install -r requirements.txt COPY pyproject.toml poetry.lock /app/ # Install the dependencies RUN poetry config virtualenvs.create false && \ poetry install --no-root --no-dev RUN apt-get update -q && \ apt-get install curl zip jq netcat-traditional -y -q && \ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \ unzip -qq awscliv2.zip && ./aws/install && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* #RUN playwright install #RUN playwright install-deps WORKDIR /app COPY . /app COPY entrypoint.sh /app/entrypoint.sh RUN chmod +x /app/entrypoint.sh ENTRYPOINT ["/app/entrypoint.sh"] # Start Gunicorn server #CMD ["gunicorn", "-w", "4", "-k", "uvicorn.workers.UvicornWorker", "api:app", "--bind", "0.0.0.0:8000"]