diff --git a/Dockerfile b/Dockerfile index 8f7e896..1487a05 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,9 +3,11 @@ LABEL maintainer="Luke Tainton " LABEL org.opencontainers.image.source="https://github.com/luketainton/webexmemebot" USER root -ENV PYTHONPATH="/run:/usr/local/lib/python3.11/lib-dynload:/usr/local/lib/python3.11/site-packages:/usr/local/lib/python3.11" +ENV PYTHONPATH="/run:/usr/local/lib/python3.13/lib-dynload:/usr/local/lib/python3.13/site-packages:/usr/local/lib/python3.13" WORKDIR /run +COPY imp.py /run/imp.py + RUN mkdir -p /.local && \ chmod -R 777 /.local && \ pip install -U pip poetry diff --git a/imp.py b/imp.py new file mode 100644 index 0000000..864a550 --- /dev/null +++ b/imp.py @@ -0,0 +1,4 @@ +"""Compatibility module that imports all symbols from the importlib module. +and exposes them as imp.""" + +from importlib import *