|
FROM ghcr.io/open-webui/open-webui:main |
|
WORKDIR /app/backend |
|
RUN chmod 777 -R /app/backend |
|
EXPOSE 8080 |
|
|
|
RUN apt-get update && apt-get install -y redis-server |
|
RUN pip install cloudscraper |
|
|
|
RUN mkdir -p /var/run/redis && \ |
|
chown -R 1000:1000 /var/run/redis && \ |
|
chown -R 1000:1000 /var/lib/redis && \ |
|
chmod 777 /var/run/redis |
|
|
|
|
|
RUN echo "#!/bin/bash" > redis-start.sh && \ |
|
echo "redis-server --daemonize yes --save '' --appendonly no" >> redis-start.sh && \ |
|
echo "sleep 2" >> redis-start.sh && \ |
|
echo "echo 'Redis status:'" >> redis-start.sh && \ |
|
echo "redis-cli ping" >> redis-start.sh |
|
|
|
RUN chmod -R 777 ./data && \ |
|
sed -i "1r redis-start.sh" ./start.sh |
|
|