File size: 423 Bytes
fcdf82d
 
 
5a90106
 
fcdf82d
 
 
 
 
 
 
5a90106
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Use the base image from the registry
FROM ghcr.io/open-webui/open-webui:main

# Expose the port required by Hugging Face Spaces
EXPOSE 7860

# Add host entry for host.docker.internal as host-gateway
RUN echo "127.0.0.1 host.docker.internal" >> /etc/hosts

# Define the volume for persistent storage
VOLUME /app/backend/data

# Default command to run the application on port 7860
CMD ["./entrypoint.sh", "--port", "7860"]