Coze 的 Discord 机器人不再回应来自机器人的指令
Closed this issue · 3 comments
jackzzs commented
jackzzs commented
好快! Great!
jackzzs commented
经过微小调整已测试成功, 详见 #5.
Dockerfile 需要进行调整, 当前我使用以下进行源码构建:
FROM gradle:8.6-jdk17-alpine AS TEMP_BUILD_IMAGE
ENV APP_HOME=/usr/app/
WORKDIR $APP_HOME
COPY build.gradle settings.gradle $APP_HOME
COPY gradle $APP_HOME/gradle
COPY --chown=gradle:gradle . /home/gradle/src
USER root
RUN chown -R gradle /home/gradle/src
RUN gradle build || return 0
COPY . .
RUN gradle clean build
# actual container
FROM adoptopenjdk/openjdk11:alpine-jre
ENV ARTIFACT_NAME=CozeDiscordBridge-1.0.0222-TempFix-all.jar
ENV APP_HOME=/usr/app
WORKDIR $APP_HOME
COPY --from=TEMP_BUILD_IMAGE $APP_HOME/build/libs/$ARTIFACT_NAME .
WORKDIR /data
ENTRYPOINT exec java -jar ${APP_HOME}/${ARTIFACT_NAME}
记录以供来者参考.
感谢!