File size: 383 Bytes
d9028d2
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM python:3-bookworm

RUN apt-get update && \
    apt-get install -y libmagickwand-dev ghostscript fonts-freefont-ttf curl libgl1-mesa-glx
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
WORKDIR /app
COPY --chown=user . /app
RUN curl -LsSf https://astral.sh/uv/install.sh | sh && \
    uv sync
ENV PATH="/app/.venv/bin:$PATH"

CMD ["python", "run.py"]