|
|
|
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.2.0/fuclaude-linux-amd64-6d474ee.zip" -o fuclaude.zip && \ |
|
unzip -P linux.do fuclaude.zip && \ |
|
rm fuclaude.zip |
|
|
|
|
|
WORKDIR /app/fuclaude-linux-amd64-6d474ee |
|
|
|
|
|
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 |
|
|
|
|
|
RUN chmod +x fuclaude |
|
|
|
|
|
EXPOSE 8181 |
|
|
|
|
|
CMD ["./fuclaude"] |