try python 3.10
This commit is contained in:
parent
205f3d324b
commit
e5ad14e466
14
Dockerfile
14
Dockerfile
@ -1,13 +1,13 @@
|
||||
FROM python:3.8 as build
|
||||
FROM python:3.10-rc as build
|
||||
ADD app/requirements.txt /requirements.txt
|
||||
RUN pip install -q --no-cache-dir -r requirements.txt
|
||||
|
||||
FROM python:3.8-slim
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends imagemagick &&\
|
||||
apt-get autoremove -y && \
|
||||
apt-get purge -y --auto-remove && \
|
||||
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.8/site-packages /usr/local/lib/python3.8/site-packages
|
||||
COPY --from=0 /usr/local/lib/python3.10/site-packages /usr/local/lib/python3.10/site-packages
|
||||
ADD app /app
|
||||
CMD python /app/bot.py
|
||||
|
@ -1,10 +1,10 @@
|
||||
FROM python:3.8 as build
|
||||
FROM python:3.10-rc as build
|
||||
ADD app/requirements.txt /requirements.txt
|
||||
RUN pip install --disable-pip-version-check --no-compile --no-cache-dir -q -r requirements.txt
|
||||
RUN pip install --disable-pip-version-check --verbose -r requirements.txt
|
||||
|
||||
FROM python:3.8-slim
|
||||
FROM python:3.10-rc-slim
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends imagemagick
|
||||
RUN pip install black && echo "black .; ./bot.py" >/usr/local/bin/start && chmod +x /usr/local/bin/start
|
||||
COPY --from=0 /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/site-packages
|
||||
COPY --from=0 /usr/local/lib/python3.10/site-packages /usr/local/lib/python3.10/site-packages
|
||||
ADD app /app
|
||||
WORKDIR /app
|
||||
|
Loading…
x
Reference in New Issue
Block a user