edit Dockerfile, add new dependencies for new browser use tool
This commit is contained in:
parent
9406d26afd
commit
de15e349ca
5 changed files with 3481 additions and 11 deletions
21
Dockerfile
21
Dockerfile
|
|
@ -1,21 +1,24 @@
|
|||
FROM nikolaik/python-nodejs:python3.11-nodejs20
|
||||
FROM python:3.12-slim
|
||||
|
||||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
curl \
|
||||
git \
|
||||
docker.io \
|
||||
curl git docker.io \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN mkdir -p /app/hermes_code /app/hermes_data
|
||||
ENV UV_PROJECT_ENVIRONMENT=/app/venv \
|
||||
HERMES_HOME=/app/hermes_data \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
PATH="/app/venv/bin:$PATH"
|
||||
|
||||
RUN mkdir -p /app/hermes_code /app/hermes_data
|
||||
WORKDIR /app/hermes_code
|
||||
|
||||
COPY pyproject.toml requirements.txt* ./
|
||||
|
||||
RUN pip install --no-cache-dir browser-use playwright python-telegram-bot
|
||||
COPY pyproject.toml uv.lock ./
|
||||
RUN uv sync --frozen --no-install-project --extra tg
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN pip install -e .
|
||||
RUN uv sync --frozen --extra tg
|
||||
|
||||
CMD ["python", "-m", "gateway.run"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue