File size: 1,066 Bytes
583aedd 3b81549 7314134 71efdaa 34e8f90 857fc23 a6a8011 e6b0dcc cb9dae4 e6b0dcc d102e3b e6b0dcc d102e3b 71efdaa eb584a3 857fc23 1461718 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
FROM ghcr.io/open-webui/open-webui:main
WORKDIR /app/backend
RUN mkdir -p /app/backend/open_webui/static
RUN mkdir -p /app/backend/static
RUN mkdir -p /app/backend/data
RUN mkdir -p /app/cache
RUN mkdir -p /tmp
# Install necessary dependencies
RUN apt-get update && apt-get install -y apache2-utils
# Update the password in webui.db
# COPY webui.db /webui.db
# RUN --mount=type=secret,id=ORIN_PASSWORD,mode=0444,required=true \
# htpasswd -bnBC 10 "" "$(cat /run/secrets/ORIN_PASSWORD)" | tr -d ':\n' > /tmp/password_hash && \
# sqlite3 /webui.db "UPDATE auth SET password='$(cat /tmp/password_hash)' WHERE email='vilarin@huggingface.co';" && \
# rm /tmp/password_hash
# Copy the updated webui.db to the desired location
# RUN cp /webui.db /app/backend/data/webui.db
#COPY webui.db /app/backend/data/webui.db
RUN chmod -R 777 /app/backend/open_webui/static
RUN chmod -R 777 /app/backend/static
RUN chmod -R 777 /app/backend/data
RUN chmod -R 777 /app/cache
RUN chmod -R 777 /tmp
ENV PGSSLCERT /tmp/postgresql.crt
EXPOSE 7860
CMD ["bash", "start.sh"] |