FROM golang:1.21-alpine AS builder WORKDIR /app RUN apk add git make && git clone https://github.com/icu-1/EasyImages.git . RUN make build-linux FROM alpine:3.19.0 WORKDIR /app COPY --from=builder /app/bin/linux/server ./server COPY --from=builder /app/bin/config.yaml ./config.yaml RUN chmod +x server \ && mkdir log \ && mkdir images \ && chmod 777 log \ && chmod 777 images RUN sed -i 's/http:\/\/127.0.0.1:8080/https:\/\/complete-mmx-easy-images\.hf\.space/g' config.yaml RUN df -h ENTRYPOINT ["sh","-c","./server --port 7860"]