Skip to content

Commit

Permalink
docker: remove cache
Browse files Browse the repository at this point in the history
  • Loading branch information
zhen.fang01 committed Jul 11, 2024
1 parent a93a9a9 commit 6ffe576
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ VITE_SITE_START = "2020-10-24"

# ICP 备案号
## 若不需要,请设为空即可
VITE_SITE_ICP = "豫ICP备2022018134号-1"
VITE_SITE_ICP = "豫ICP备2024078033号-1"

# 歌曲 API 地址
## 请参照 https://github.com/xizeyoupan/Meting-API#deno-deploy 进行 API 服务部署
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN [ ! -e ".env" ] && cp .env.example .env || true
COPY .env.example .env
# RUN [ ! -e ".env" ] && cp .env.example .env || true
RUN npm run build

# 最小化镜像
Expand Down
7 changes: 4 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ version: '3'

services:
app:
build:
context: .
dockerfile: Dockerfile
# build:
# context: .
# dockerfile: Dockerfile
image: home-app
ports:
- "12445:12445"

0 comments on commit 6ffe576

Please sign in to comment.