Skip to content

Commit

Permalink
🐳 chore: 替换配置文件
Browse files Browse the repository at this point in the history
  • Loading branch information
imsyy committed Nov 5, 2024
1 parent d27ef0d commit 7b610ef
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
File renamed without changes.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ node_modules
.DS_Store
dist
*.local
.env

# Editor directories and files
.vscode/*
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ FROM base AS builder
RUN npm install -g pnpm
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 public ./public

# add .env.example to .env
RUN [ ! -e ".env" ] && cp .env.example .env || true

RUN pnpm install
RUN pnpm build
RUN pnpm prune --production
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ cd DailyHotApi
npm install
```

复制 `/.env.example` 文件并重命名为 `/.env` 并修改配置

#### 开发

```bash
Expand Down

0 comments on commit 7b610ef

Please sign in to comment.