15 lines
510 B
Docker
Executable File
15 lines
510 B
Docker
Executable File
FROM python:3.10-rc as build
|
|
ADD app/requirements.txt /requirements.txt
|
|
RUN python -m pip install -q --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
|