webui / Dockerfile
Candro
fresh commit
b47b2ac
raw
history blame
759 Bytes
# Use a specific container image for the application
FROM ghcr.io/open-webui/open-webui:0.6.26-slim
# Set the main working directory inside the container
WORKDIR /app/backend
# Copy the database file into the container
# This database is a placeholder or dummy,
# and the core configuration is located in the Environment
# and Secret Environment settings of Hugging Face Spaces.
COPY --chown=$UID:$GID src/database/webui.db /app/backend/data/
COPY --chown=$UID:$GID src/env.py /app/backend/open_webui/
# Set the database permission
RUN chmod 777 /app/backend/data/webui.db
RUN chmod 777 /app/backend/open_webui/env.py
# Open the port so the application can be accessed
EXPOSE 8080
# Start the application using the startup script
CMD ["bash", "start.sh"]