abhinand commited on
Commit
24851de
1 Parent(s): 3758220

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -15
Dockerfile CHANGED
@@ -3,21 +3,9 @@ FROM ghcr.io/open-webui/open-webui:main
3
  # Set static environment variables
4
  ENV OPENAI_API_BASE_URLS="https://api.together.xyz/v1;https://api.groq.com/openai/v1"
5
 
6
- # Mount secrets and read their values in a RUN command
7
- RUN --mount=type=secret,id=TOGETHER_API_KEY,mode=0444,required=true \
8
- --mount=type=secret,id=GROQ_API_KEY,mode=0444,required=true \
9
- --mount=type=secret,id=REMOTE_DB_URI,mode=0444,required=true \
10
- mkdir -p /run/secrets && \
11
- cp /run/secrets/TOGETHER_API_KEY /run/secrets/GROQ_API_KEY /run/secrets/REMOTE_DB_URI /tmp/secrets/
12
-
13
- # Copy the entrypoint script
14
- COPY entrypoint.sh /usr/local/bin/
15
-
16
- # Make the entrypoint script executable
17
- RUN chmod +x /usr/local/bin/entrypoint.sh
18
-
19
- # Set the entrypoint
20
- ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
21
 
22
  # Expose the necessary port
23
  EXPOSE 8080
 
3
  # Set static environment variables
4
  ENV OPENAI_API_BASE_URLS="https://api.together.xyz/v1;https://api.groq.com/openai/v1"
5
 
6
+ # Set permissions for the app directory
7
+ RUN chmod -R 777 /app/backend
8
+ VOLUME /app/backend/data
 
 
 
 
 
 
 
 
 
 
 
 
9
 
10
  # Expose the necessary port
11
  EXPOSE 8080