-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.web
36 lines (29 loc) · 903 Bytes
/
Dockerfile.web
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM python:3.12-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# Install langgraph (needed for web service dependencies)
RUN pip install --no-cache-dir "langgraph-cli[inmem]"
# Install poetry
ENV POETRY_HOME=/opt/poetry
RUN curl -sSL https://install.python-poetry.org | python - && \
cd /usr/local/bin && \
ln -s /opt/poetry/bin/poetry && \
poetry config virtualenvs.create false
# Configure poetry
ENV POETRY_NO_INTERACTION=1 \
POETRY_VIRTUALENVS_CREATE=false \
PORT=3000
# Copy project files
COPY pyproject.toml poetry.lock ./
COPY slack_ai_agent/ ./slack_ai_agent/
# Install dependencies
RUN poetry install --only main
EXPOSE 3000
ENV PYTHONPATH=/app:$PYTHONPATH
CMD ["python", "slack_ai_agent/slack/app.py", "--host", "0.0.0.0"]