Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -5
Dockerfile
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
# Use the prebuilt image
|
2 |
FROM ghcr.io/open-webui/open-webui:main
|
3 |
|
4 |
-
#
|
|
|
|
|
|
|
|
|
5 |
ENV DATA_DIR=/app/backend/data/
|
6 |
|
7 |
# Create data directories and set permissions
|
8 |
RUN mkdir -p $DATA_DIR
|
9 |
-
|
10 |
-
# Set ownership of the directory (replace with appropriate user ID and group ID or set default)
|
11 |
-
ARG UID=1000
|
12 |
-
ARG GID=1000
|
13 |
RUN chown -R $UID:$GID $DATA_DIR
|
14 |
|
15 |
# Expose the port
|
@@ -20,3 +20,4 @@ WORKDIR /app/backend
|
|
20 |
|
21 |
# Command to start the application
|
22 |
CMD ["bash", "start.sh"]
|
|
|
|
1 |
# Use the prebuilt image
|
2 |
FROM ghcr.io/open-webui/open-webui:main
|
3 |
|
4 |
+
# environment variables
|
5 |
+
ARG UID=1000
|
6 |
+
ARG GID=1000
|
7 |
+
ENV ENABLE_AUTH=True
|
8 |
+
ENV WEBUI_AUTH=True
|
9 |
ENV DATA_DIR=/app/backend/data/
|
10 |
|
11 |
# Create data directories and set permissions
|
12 |
RUN mkdir -p $DATA_DIR
|
|
|
|
|
|
|
|
|
13 |
RUN chown -R $UID:$GID $DATA_DIR
|
14 |
|
15 |
# Expose the port
|
|
|
20 |
|
21 |
# Command to start the application
|
22 |
CMD ["bash", "start.sh"]
|
23 |
+
|