Speed up builds
This commit is contained in:
parent
12ebef8e01
commit
0e8ff73ebf
@ -1,6 +1,8 @@
|
|||||||
FROM python:3.10-rc as build
|
FROM python:3.10-rc as build
|
||||||
ADD app/requirements.txt /requirements.txt
|
ADD app/requirements.txt /requirements.txt
|
||||||
RUN python -m pip install -q --no-cache-dir -r 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 install -q --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
FROM python:3.10-rc-slim
|
FROM python:3.10-rc-slim
|
||||||
RUN apt update && \
|
RUN apt update && \
|
||||||
|
@ -1,10 +1,16 @@
|
|||||||
FROM python:3.10-rc as build
|
FROM python:3.10-rc as build
|
||||||
ADD app/requirements.txt /requirements.txt
|
ADD app/requirements.txt /requirements.txt
|
||||||
RUN pip install --disable-pip-version-check --verbose -r requirements.txt
|
ADD --chmod=755 https://astral.sh/uv/install.sh /install.sh
|
||||||
|
RUN /install.sh && rm /install.sh
|
||||||
|
# RUN pip install --disable-pip-version-check --verbose -r requirements.txt
|
||||||
|
RUN /root/.cargo/bin/uv pip install --system --verbose -r requirements.txt
|
||||||
|
|
||||||
FROM python:3.10-rc-slim
|
FROM python:3.10-rc-slim
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends imagemagick vim jq curl
|
RUN apt-get update && apt-get install -y --no-install-recommends imagemagick vim jq curl
|
||||||
RUN pip install black && echo "black .; ./bot.py" >/usr/local/bin/start && chmod +x /usr/local/bin/start
|
|
||||||
|
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 "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
|
COPY --from=0 /usr/local/lib/python3.10/site-packages /usr/local/lib/python3.10/site-packages
|
||||||
ADD app /app
|
ADD app /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
Loading…
x
Reference in New Issue
Block a user