openwebuitest / DOCKERFILE
visharxd's picture
changes
5a90106
raw
history blame contribute delete
423 Bytes
# 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"]