🐳 chore: 替换配置文件

This commit is contained in:
imsyy
2024-11-05 16:07:09 +08:00
parent d27ef0d116
commit 7b610ef8cd
4 changed files with 7 additions and 1 deletions

View File

1
.gitignore vendored
View File

@@ -11,6 +11,7 @@ node_modules
.DS_Store .DS_Store
dist dist
*.local *.local
.env
# Editor directories and files # Editor directories and files
.vscode/* .vscode/*

View File

@@ -15,10 +15,13 @@ FROM base AS builder
RUN npm install -g pnpm RUN npm install -g pnpm
WORKDIR /app WORKDIR /app
COPY package*json tsconfig.json pnpm-lock.yaml .env ./ COPY package*json tsconfig.json pnpm-lock.yaml .env.example ./
COPY src ./src COPY src ./src
COPY public ./public COPY public ./public
# add .env.example to .env
RUN [ ! -e ".env" ] && cp .env.example .env || true
RUN pnpm install RUN pnpm install
RUN pnpm build RUN pnpm build
RUN pnpm prune --production RUN pnpm prune --production

View File

@@ -143,6 +143,8 @@ cd DailyHotApi
npm install npm install
``` ```
复制 `/.env.example` 文件并重命名为 `/.env` 并修改配置
#### 开发 #### 开发
```bash ```bash