File size: 972 Bytes
c3274da
 
9b6241d
3181b06
 
 
 
c9314ad
6db260a
c9314ad
 
 
 
35a8389
 
 
3181b06
35a8389
 
 
 
 
 
48ce2b1
35a8389
48ce2b1
e21a3e8
3181b06
eb2034e
35a8389
6db260a
c9314ad
6db260a
9b6241d
c3274da
 
9b6241d
c3274da
35a8389
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Use an existing base image
FROM pengzhile/fuclaude:latest

# Set the timezone (replace "Asia/Shanghai" with your desired timezone)
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

# Create data directory and set permissions
RUN mkdir -p /data && chown 1000:1000 /data

# Set environment variable
ENV FUCLAUDE_SIGNUP_ENABLED=true

# Switch to non-root user
USER 1000

# Create config.json file with the specified content
RUN echo '{ \
  "bind": "[::]:8181", \
  "timeout": 600, \
  "proxy_url": "", \
  "real_logout": false, \
  "cookie_secret": "1234567890abcdefghijklmnopqrstuv", \
  "openai_base_url": "https://moderations.shellten.top/v1", \
  "openai_api_key": "sk-xxx", \
  "moderation_enabled": true \
  "show_session_key": true \
}' > /data/config.json



# Set working directory
WORKDIR /data

# Expose the port inside the container
EXPOSE 8181

# Specify the command to run your application
CMD ["./fuclaude"]