精简提交历史记录
This commit is contained in:
2
apps/meowfacts/latest/.env.sample
Normal file
2
apps/meowfacts/latest/.env.sample
Normal file
@@ -0,0 +1,2 @@
|
||||
CONTAINER_NAME="meowfacts"
|
||||
PANEL_APP_PORT_HTTP="40045"
|
||||
19
apps/meowfacts/latest/Dockerfile
Normal file
19
apps/meowfacts/latest/Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM node:16-alpine
|
||||
|
||||
# 安装 git,创建工作目录,并克隆代码
|
||||
RUN apk update && apk upgrade && \
|
||||
apk add --no-cache bash git openssh && \
|
||||
mkdir -p /usr/src/app && \
|
||||
git clone https://github.com/wh-iterabb-it/meowfacts /usr/src/app
|
||||
|
||||
# 切换到工作目录
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# 安装 Node.js 依赖
|
||||
RUN npm install
|
||||
|
||||
# 暴露服务器端口
|
||||
EXPOSE 3000-5001
|
||||
|
||||
# 启动应用程序
|
||||
CMD ["npm", "start"]
|
||||
10
apps/meowfacts/latest/data.yml
Normal file
10
apps/meowfacts/latest/data.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: 40045
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
21
apps/meowfacts/latest/docker-compose.yml
Normal file
21
apps/meowfacts/latest/docker-compose.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
version: "3"
|
||||
services:
|
||||
meowfacts:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
IMAGE_TAG: latest
|
||||
container_name: ${CONTAINER_NAME}
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- "${PANEL_APP_PORT_HTTP}:5000"
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user