All checks were successful
Build and push / changes (push) Successful in 3s
Build and push / Lint-Python (push) Successful in 1s
Build and push / Build-and-Push-Docker (push) Successful in 20s
Build and push / sync-argocd-app (push) Successful in 3s
Build and push / post-status-to-discord (push) Successful in 34s
15 lines
712 B
Plaintext
Executable File
15 lines
712 B
Plaintext
Executable File
FROM python:3.10-rc AS build
|
|
ADD app/requirements.txt /requirements.txt
|
|
ADD --chmod=755 https://astral.sh/uv/install.sh /install.sh
|
|
RUN /install.sh && rm /install.sh
|
|
RUN /root/.local/bin/uv pip install --system --verbose -r requirements.txt
|
|
|
|
FROM python:3.10-rc-slim
|
|
RUN apt-get update && apt-get install -y --no-install-recommends imagemagick vim jq curl
|
|
|
|
COPY --from=0 /root/.local/bin/uv /root/.local/bin/uv
|
|
RUN /root/.local/bin/uv pip install --system black && echo "find . -name "*sync-conflict*" -print -delete; black .; ./bot.py" >/usr/local/bin/start && chmod +x /usr/local/bin/start
|
|
COPY --from=0 /usr/local/lib/python3.10/site-packages /usr/local/lib/python3.10/site-packages
|
|
ADD app /app
|
|
WORKDIR /app
|