Spaces:
Sleeping
Sleeping
File size: 610 Bytes
d8c858d 5c9430c d8c858d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
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"]
|