This repository has been archived by the owner on Jul 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
40 additions
and
41 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# JDK版本 | ||
FROM openjdk:17-oracle | ||
|
||
# 全局版本号 | ||
ARG VERSION=1.0.0203 | ||
|
||
# DOCKERFILE信息 | ||
LABEL maintainer="[email protected]" | ||
LABEL version="${VERSION}" | ||
LABEL description="Coze-Discord-Bridge" | ||
|
||
# 暴露端口配置 | ||
EXPOSE 8092 8093 | ||
|
||
# 持久化存储配置 | ||
RUN mkdir /data | ||
WORKDIR /data | ||
|
||
# 下载Release | ||
RUN mkdir /app | ||
RUN curl -L "https://github.com/catx-feitu/Coze-Discord-Bridge/releases/download/${VERSION}/CozeDiscordBridge-${VERSION}-all.jar" -o "/app/CozeDiscordBridge.jar" | ||
|
||
# 容器启动时运行JAR文件 | ||
# ENTRYPOINT中的JAR文件路径应该从工作目录启动 | ||
ENTRYPOINT ["java", "-jar", "/app/CozeDiscordBridge.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: '3.8' | ||
|
||
services: | ||
coze-discord-bridge: | ||
build: . | ||
container_name: coze-discord-bridge | ||
ports: | ||
- "8092:8092" | ||
- "8093:8093" | ||
volumes: | ||
- coze-discord-bridge:/data | ||
restart: unless-stopped | ||
volumes: | ||
coze-discord-bridge: | ||
driver: local |