-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (25 loc) · 751 Bytes
/
Dockerfile
File metadata and controls
31 lines (25 loc) · 751 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
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive
# Install dependencies
# We keep build-essential and add cargo/rust for compiling BustAPI's Rust core
# can be ignored if you're not using the Rust extension
# but build-essential needed for libc
RUN apt-get update && apt-get install -y --no-install-recommends \
python3 \
python3-pip \
python3-dev \
build-essential \
curl \
cargo \
pkg-config \
libssl-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy project files
COPY . .
# Install dependencies and the package itself
# This builds the Rust extension (requires cargo)
RUN pip3 install --no-cache-dir . --break-system-packages
# Default command
CMD ["python3", "app.py"]