dragon-bot/Dockerfile
Luke R a94546308b
All checks were successful
Build and push / changes (push) Successful in 14s
Build and push / Lint-Python (push) Successful in 7s
Build and push / Build-and-Push-Docker (push) Successful in 1m54s
Build and push / sync-argocd-app (push) Successful in 5s
Adding a domain corrector for instagram videos
2024-09-28 10:18:51 -07:00

17 lines
613 B
Docker
Executable File

FROM python:3.10-rc AS build
ADD app/requirements.txt /requirements.txt
ADD https://astral.sh/uv/install.sh /install.sh
RUN bash /install.sh && rm /install.sh
RUN /root/.cargo/bin/uv pip install --system --no-cache-dir -r requirements.txt
FROM python:3.10-rc-slim
RUN apt update && \
apt install -y --no-install-recommends imagemagick && \
apt autoremove -y && \
apt purge -y --auto-remove && \
rm -rf /var/lib/apt/lists/* /root
COPY --from=0 /usr/local/lib/python3.10/site-packages /usr/local/lib/python3.10/site-packages
ADD app /app
RUN mkdir -p /root/.cache/py-finance
CMD python /app/bot.py