dragon-bot/Dockerfile-test-env
Luke Robles cae5e433ff
All checks were successful
Build and push / changes (push) Successful in 32s
Build and push / Lint-Python (push) Successful in 7s
Build and push / Build-and-Push-Docker (push) Successful in 3m18s
Build and push / sync-argocd-app (push) Successful in 3s
remove assault from teh list until further notice
2024-11-04 13:55:12 -08:00

16 lines
752 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/.cargo/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
ADD --chmod=755 https://astral.sh/uv/install.sh /install.sh
RUN /install.sh && rm /install.sh
RUN /root/.cargo/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