Spaces:
Sleeping
Sleeping
FROM ghcr.io/open-webui/open-webui:main | |
# Set environment variables | |
ENV ENV=production \ | |
WEBUI_AUTH=false \ | |
OPENAI_API_BASE_URL=https://api.deepinfra.com/v1/openai \ | |
OPENAI_API_KEY=Qkg36ZyeOllw5Y7ARp3Xr7Gmq8JmR13B | |
# Expose the application port | |
EXPOSE 8080 | |
# Set the working directory | |
WORKDIR /app/backend | |
# Make sure the start.sh script is executable and set permissions for the database directory | |
RUN chmod +x start.sh && \ | |
mkdir -p /app/backend/data && \ | |
chown -R nobody:nogroup /app/backend/data | |
# Switch to a non-root user | |
USER nobody | |
# Run the start.sh script | |
CMD ["./start.sh"] | |