16 lines
705 B
Plaintext
Executable File
16 lines
705 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 "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
|