mirror of
https://github.com/imsyy/DailyHotApi.git
synced 2026-01-12 13:14:55 +08:00
🐳 chore: 替换配置文件
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -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/*
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user