coteerratu commited on
Commit
3181b06
1 Parent(s): eb2034e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -5
Dockerfile CHANGED
@@ -1,17 +1,30 @@
1
  # Use an existing base image
2
  FROM pengzhile/fuclaude:latest
3
 
 
 
 
 
4
  # Create data directory and set permissions
5
  RUN mkdir -p /data && chown 1000:1000 /data
6
- USER 1000
7
- # Copy the config.json into the container
8
- COPY config.json /data/config.json
9
 
10
  # Set environment variable
11
  ENV FUCLAUDE_SIGNUP_ENABLED=true
12
 
13
- # Switch to non-root user
 
 
 
 
 
 
 
 
 
 
14
 
 
 
15
 
16
  # Set working directory
17
  WORKDIR /data
@@ -20,4 +33,4 @@ WORKDIR /data
20
  EXPOSE 8181
21
 
22
  # Specify the command to run your application
23
- CMD ["./fuclaude"]
 
1
  # Use an existing base image
2
  FROM pengzhile/fuclaude:latest
3
 
4
+ # Set the timezone (replace "Asia/Shanghai" with your desired timezone)
5
+ ENV TZ=Asia/Shanghai
6
+ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
7
+
8
  # Create data directory and set permissions
9
  RUN mkdir -p /data && chown 1000:1000 /data
 
 
 
10
 
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
+ # Switch to non-root user
27
+ USER 1000
28
 
29
  # Set working directory
30
  WORKDIR /data
 
33
  EXPOSE 8181
34
 
35
  # Specify the command to run your application
36
+ CMD ["./fuclaude", "--port", "8181", "--config", "/data/config.json"]