Update Dockerfile
Browse files- 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 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
-
|
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"]
|
|
|
|