Spaces:
Running
Running
File size: 752 Bytes
b47b2ac 53c5b85 b47b2ac |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# Use a specific container image for the application
FROM ghcr.io/open-webui/open-webui:main
# 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"] |