-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (22 loc) · 815 Bytes
/
Dockerfile
File metadata and controls
30 lines (22 loc) · 815 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
FROM python:3.13-slim-bookworm
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1
WORKDIR /app
##### Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
##### Install system dependencies
##### nano is included to edit the config.json file easily if needed.
RUN apt-get update \
&& apt-get install -y --no-install-recommends build-essential \
&& apt-get install -y nano \
&& rm -rf /var/lib/apt/lists/*
##### Install Python dependencies
COPY requirements.txt .
RUN uv pip install --system --no-cache --index-strategy unsafe-best-match -r requirements.txt
##### Copy project
COPY . .
##### Adding Ally to PATH
RUN printf '#!/bin/sh\nexec python /app/main.py "$@"\n' > /usr/local/bin/ally \
&& chmod +x /usr/local/bin/ally
CMD ["/bin/bash"]