-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (21 loc) · 708 Bytes
/
Copy pathDockerfile
File metadata and controls
27 lines (21 loc) · 708 Bytes
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
# Match the repo's local Python version (`.python-version`) to avoid runtime drift.
FROM python:3.10.16-slim
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PIP_NO_CACHE_DIR=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Install dependencies using the project metadata (avoids Poetry/lock mismatch issues).
COPY pyproject.toml ./
COPY poetry.lock* ./
COPY README.md ./
COPY src ./src
COPY scripts ./scripts
COPY alembic ./alembic
COPY alembic.ini ./
RUN pip install --upgrade pip && pip install .
CMD ["python", "-m", "fateforger.slack_bot.bot"]