Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Commit

Permalink
[+] Docker Support (还没有上传镜像)
Browse files Browse the repository at this point in the history
  • Loading branch information
NekoCurit committed Feb 13, 2024
1 parent e7ad7b8 commit d69227b
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 41 deletions.
40 changes: 0 additions & 40 deletions Dockerfile

This file was deleted.

1 change: 0 additions & 1 deletion docker-compose.yml

This file was deleted.

25 changes: 25 additions & 0 deletions docker/Dockerfile
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"]
15 changes: 15 additions & 0 deletions docker/docker-compose.yml
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

0 comments on commit d69227b

Please sign in to comment.