FROM alpine:3.15 RUN apk --update add redis ENV PYTHONUNBUFFERED=1 RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python RUN python3 -m ensurepip RUN pip3 install --no-cache --upgrade pip setuptools ADD ./plugin-server.py /var/www/plugin-server/plugin-server.py ADD ./plugin-loader.js /var/www/plugin-server/plugin-loader.js ADD ./requirements.txt /var/www/plugin-server/requirements.txt WORKDIR /var/www/plugin-server/ RUN pip install -r requirements.txt RUN ln -s /var/www/plugins/ ./ CMD /usr/bin/redis-server & python plugin-server.py