FROM --platform=$BUILDPLATFORM node:21-alpine AS builder RUN apk add make g++ alpine-sdk python3 py3-pip RUN npm i -g pnpm WORKDIR /app RUN chmod 777 -R /app RUN git clone https://github.com/wibus-wee/raycast-unblock.git . # Exclude packages/raycast -- just delete it... RUN rm -rf packages/raycast RUN pnpm install RUN pnpm build:core RUN pnpm bundle FROM --platform=$BUILDPLATFORM caddy:2.6.2-alpine AS runner RUN apk add --no-cache libstdc++ WORKDIR /app RUN mkdir -p /raycast_sync && chmod 777 -R /raycast_sync RUN mkdir -p /.raycast_unblock && chmod 777 -R /.raycast_unblock COPY --from=builder /app/dist/raycast-unblock-app . COPY config.toml ./config.toml COPY entrypoint.sh ./entrypoint.sh RUN chmod 777 -R /app ENV TZ=Asia/Shanghai EXPOSE 3000 ENTRYPOINT ["./entrypoint.sh"]