coteerratu
commited on
Commit
•
35a8389
1
Parent(s):
3181b06
Update Dockerfile
Browse files- Dockerfile +14 -12
Dockerfile
CHANGED
@@ -11,20 +11,22 @@ RUN mkdir -p /data && chown 1000:1000 /data
|
|
11 |
# Set environment variable
|
12 |
ENV FUCLAUDE_SIGNUP_ENABLED=true
|
13 |
|
|
|
|
|
|
|
14 |
# Create config.json file with the specified content
|
15 |
-
RUN echo '{
|
16 |
-
"bind": "[::]:8181",
|
17 |
-
"timeout": 600,
|
18 |
-
"proxy_url": "",
|
19 |
-
"real_logout": false,
|
20 |
-
"cookie_secret": "1234567890abcdefghijklmnopqrstuv",
|
21 |
-
"openai_base_url": "https://api.openai.com/v1",
|
22 |
-
"openai_api_key": "sk-xxx",
|
23 |
-
"moderation_enabled": false
|
24 |
}' > /data/config.json
|
25 |
|
26 |
-
|
27 |
-
USER 1000
|
28 |
|
29 |
# Set working directory
|
30 |
WORKDIR /data
|
@@ -33,4 +35,4 @@ WORKDIR /data
|
|
33 |
EXPOSE 8181
|
34 |
|
35 |
# Specify the command to run your application
|
36 |
-
CMD ["./fuclaude"
|
|
|
11 |
# Set environment variable
|
12 |
ENV FUCLAUDE_SIGNUP_ENABLED=true
|
13 |
|
14 |
+
# Switch to non-root user
|
15 |
+
USER 1000
|
16 |
+
|
17 |
# Create config.json file with the specified content
|
18 |
+
RUN echo '{ \
|
19 |
+
"bind": "[::]:8181", \
|
20 |
+
"timeout": 600, \
|
21 |
+
"proxy_url": "", \
|
22 |
+
"real_logout": false, \
|
23 |
+
"cookie_secret": "1234567890abcdefghijklmnopqrstuv", \
|
24 |
+
"openai_base_url": "https://api.openai.com/v1", \
|
25 |
+
"openai_api_key": "sk-xxx", \
|
26 |
+
"moderation_enabled": false \
|
27 |
}' > /data/config.json
|
28 |
|
29 |
+
|
|
|
30 |
|
31 |
# Set working directory
|
32 |
WORKDIR /data
|
|
|
35 |
EXPOSE 8181
|
36 |
|
37 |
# Specify the command to run your application
|
38 |
+
CMD ["./fuclaude"]
|