lexonomy_editor_plugin_system/Dockerfile

21 lines
566 B
Docker
Raw Permalink Normal View History

2022-06-14 18:29:38 +00:00
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
2024-01-10 10:45:21 +00:00
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
2022-06-14 18:29:38 +00:00
WORKDIR /var/www/plugin-server/
RUN pip install -r requirements.txt
2024-01-10 10:45:21 +00:00
RUN ln -s /var/www/plugins/ ./
2022-06-14 18:29:38 +00:00
2024-01-10 10:45:21 +00:00
CMD /usr/bin/redis-server & python plugin-server.py