|
|
|
FROM ubuntu:latest |
|
|
|
|
|
RUN apt-get update && \ |
|
apt-get install -y curl unzip sed |
|
|
|
|
|
WORKDIR /app |
|
RUN curl -L "https://github.com/wozulong/fuclaude/releases/download/v0.3.2/fuclaude-v0.3.2-linux-amd64-35e29ca.zip" -o fuclaude.zip && \ |
|
unzip -P linux.do fuclaude.zip && \ |
|
rm fuclaude.zip |
|
|
|
|
|
WORKDIR /app/fuclaude-v0.3.2-linux-amd64-35e29ca |
|
|
|
|
|
RUN chmod 666 config.json |
|
|
|
|
|
RUN sed -i 's/127.0.0.1/0.0.0.0/' config.json && \ |
|
sed -i 's/"signup_enabled": false/"signup_enabled": true/' config.json && \ |
|
sed -i 's/"show_session_key": false/"show_session_key": true/' config.json |
|
|
|
|
|
RUN chmod +x fuclaude |
|
|
|
|
|
EXPOSE 8181 |
|
|
|
|
|
CMD ["./fuclaude"] |