|
|
|
|
|
FROM ubuntu:latest |
|
|
|
|
|
RUN apt-get update && \ |
|
apt-get install -y curl unzip jq sed |
|
|
|
|
|
WORKDIR /app |
|
|
|
|
|
RUN curl -L $(curl -s https://api.github.com/repos/wozulong/fuclaude/releases/latest | \ |
|
jq -r '.assets[] | select(.name | contains("linux-amd64")) | .browser_download_url') -o fuclaude.zip && \ |
|
unzip -P linux.do fuclaude.zip && \ |
|
rm fuclaude.zip |
|
|
|
|
|
WORKDIR /app |
|
RUN mv fuclaude-* fuclaude |
|
WORKDIR /app/fuclaude |
|
|
|
|
|
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"] |