Update Dockerfile
Browse files- Dockerfile +9 -1
Dockerfile
CHANGED
@@ -11,7 +11,15 @@ ENV SESSION_EXPIRY=900000
|
|
11 |
ENV REFRESH_TOKEN_EXPIRY=604800000
|
12 |
ENV OPENAI_MODELS=gpt-3.5-turbo-1106,gpt-4-1106-preview,gpt-4-vision-preview,gpt-3.5-turbo,gpt-3.5-turbo-16k,gpt-3.5-turbo-0301,text-davinci-003,gpt-4,gpt-4-0314,gpt-4-0613
|
13 |
ENV PLUGIN_MODELS=gpt-3.5-turbo-1106,gpt-4-1106-preview,gpt-4-vision-preview,gpt-3.5-turbo,gpt-3.5-turbo-16k,gpt-3.5-turbo-0301,text-davinci-003,gpt-4,gpt-4-0314,gpt-4-0613
|
14 |
-
ENV
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
# Install dependencies
|
17 |
RUN cd /app/api && npm install
|
|
|
11 |
ENV REFRESH_TOKEN_EXPIRY=604800000
|
12 |
ENV OPENAI_MODELS=gpt-3.5-turbo-1106,gpt-4-1106-preview,gpt-4-vision-preview,gpt-3.5-turbo,gpt-3.5-turbo-16k,gpt-3.5-turbo-0301,text-davinci-003,gpt-4,gpt-4-0314,gpt-4-0613
|
13 |
ENV PLUGIN_MODELS=gpt-3.5-turbo-1106,gpt-4-1106-preview,gpt-4-vision-preview,gpt-3.5-turbo,gpt-3.5-turbo-16k,gpt-3.5-turbo-0301,text-davinci-003,gpt-4,gpt-4-0314,gpt-4-0613
|
14 |
+
ENV UID=1000
|
15 |
+
ENV GID=1000
|
16 |
+
|
17 |
+
# Create necessary directories for vision
|
18 |
+
RUN mkdir -p /app/client/public/images/temp && \
|
19 |
+
chown -R 1000:1000 /app/client/public/images/temp
|
20 |
+
|
21 |
+
# Give write permission to the directory
|
22 |
+
RUN chmod -R 777 /app/client/public/images
|
23 |
|
24 |
# Install dependencies
|
25 |
RUN cd /app/api && npm install
|