-
Notifications
You must be signed in to change notification settings - Fork 692
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (25 loc) · 766 Bytes
/
Dockerfile
File metadata and controls
35 lines (25 loc) · 766 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
28
29
30
31
32
33
34
35
# ============= BASE STAGE =============
FROM python:3.12-slim-bullseye AS base
WORKDIR /wbb
ENV DEBIAN_FRONTEND=noninteractive
ENV PYTHONUNBUFFERED=1
# install required system dependencies for python packages
RUN apt-get update -y && apt-get install -y --no-install-recommends \
curl ca-certificates \
git gcc build-essential \
iputils-ping \
&& rm -rf /var/lib/apt/lists/*
# install uv
ADD https://astral.sh/uv/install.sh /uv-installer.sh
RUN sh /uv-installer.sh && rm /uv-installer.sh
ENV PATH="/root/.local/bin/:$PATH"
COPY .python-version .
COPY pyproject.toml .
COPY uv.lock .
# ============= PRODUCTION STAGE =============
FROM base
ENV UV_NO_DEV=1
RUN uv sync
COPY . .
# Starting Bot
ENTRYPOINT ["uv", "run", "python", "-m", "wbb"]