Spaces:
Sleeping
Sleeping
gitsilence
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -7,36 +7,3 @@ sdk: docker
|
|
7 |
pinned: false
|
8 |
app_port: 8181
|
9 |
---
|
10 |
-
|
11 |
-
# 使用官方Ubuntu基础镜像
|
12 |
-
FROM ubuntu:latest
|
13 |
-
|
14 |
-
# 安装curl、unzip和sed(用于编辑文件)
|
15 |
-
RUN apt-get update && \
|
16 |
-
apt-get install -y curl unzip sed
|
17 |
-
|
18 |
-
# 下载并解压程序
|
19 |
-
WORKDIR /app
|
20 |
-
RUN curl -L "https://github.com/wozulong/fuclaude/releases/download/v0.2.3/fuclaude-v0.2.3-linux-amd64-8db794c.zip" -o fuclaude.zip && \
|
21 |
-
unzip -P linux.do fuclaude.zip && \
|
22 |
-
rm fuclaude.zip
|
23 |
-
|
24 |
-
# 进入程序目录
|
25 |
-
WORKDIR /app/fuclaude-v0.2.3-linux-amd64-8db794c
|
26 |
-
|
27 |
-
# 修改文件权限,确保可读可写
|
28 |
-
RUN chmod 666 config.json
|
29 |
-
|
30 |
-
# 修改配置文件
|
31 |
-
RUN sed -i 's/127.0.0.1/0.0.0.0/' config.json && \
|
32 |
-
sed -i 's/"signup_enabled": false/"signup_enabled": true/' config.json && \
|
33 |
-
sed -i 's/"show_session_key": false/"show_session_key": true/' config.json
|
34 |
-
|
35 |
-
# 确保程序文件可执行
|
36 |
-
RUN chmod +x fuclaude
|
37 |
-
|
38 |
-
# 暴露端口8181
|
39 |
-
EXPOSE 8181
|
40 |
-
|
41 |
-
# 运行程序
|
42 |
-
CMD ["./fuclaude"]
|
|
|
7 |
pinned: false
|
8 |
app_port: 8181
|
9 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|