coteerratu commited on
Commit
c9314ad
1 Parent(s): 6db260a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -12
Dockerfile CHANGED
@@ -1,25 +1,23 @@
1
  # Use an existing base image
2
  FROM pengzhile/fuclaude:latest
3
 
4
- # 设置时区
5
-
6
- # 创建数据目录并设置权限
7
  RUN mkdir -p /data && chown 1000:1000 /data
8
 
9
- # 切换到非root用户
 
 
 
 
 
 
10
  USER 1000
11
 
12
- # 设置工作目录
13
  WORKDIR /data
14
 
15
  # Expose the port inside the container
16
  EXPOSE 8181
17
 
18
- # Set any other configurations or commands if necessary
19
- # For example, if additional setup or commands are needed upon container start-up,
20
- # they can be added here.
21
-
22
  # Specify the command to run your application
23
- # CMD ["command", "parameter1", "parameter2", ...]
24
- # Replace the command with the actual command that starts your application
25
- CMD ["./fuclaude", "--port", "8181"]
 
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
 
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
  USER 1000
15
 
16
+ # Set working directory
17
  WORKDIR /data
18
 
19
  # Expose the port inside the container
20
  EXPOSE 8181
21
 
 
 
 
 
22
  # Specify the command to run your application
23
+ CMD ["./fuclaude"]