Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- 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 |
-
#
|
7 |
-
RUN
|
8 |
-
|
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
|