-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (25 loc) · 826 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (25 loc) · 826 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
# custom-metrics/Dockerfile
FROM --platform=linux/arm64/v8 python:3.13-slim-bookworm
WORKDIR /app
# Install system dependencies required for building some Python packages
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libusb-1.0-0-dev python3-dev \
libpango-1.0-0 libpangoft2-1.0-0 \
libharfbuzz0b libfontconfig1 libfreetype6 \
libxml2 libxslt1.1 libffi-dev \
libcairo2 libgdk-pixbuf2.0-0 \
&& \
rm -rf /var/lib/apt/lists/*
# Create config directory for credentials
RUN mkdir -p /app/config
# Install dependencies
RUN pip install --no-cache-dir --upgrade pip setuptools
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY main.py .
COPY src/ src/
COPY templates/ templates/
# Run the application
CMD ["python", "main.py"]