8 Commits
v1.2 ... v1.7

Author SHA1 Message Date
zyronon
6d95c87a91 refactor: update Dockerfile 2024-05-01 22:07:36 +08:00
zyronon
6b198e8f21 refactor: update Dockerfile 2024-05-01 21:53:13 +08:00
zyronon
6bf2dfedf2 refactor: update Dockerfile 2024-05-01 21:41:20 +08:00
Zyronon
bbbb9ba222 Update .dockerignore 2024-05-01 21:26:24 +08:00
zyronon
2de950fd12 Merge remote-tracking branch 'origin/master' 2024-05-01 21:19:41 +08:00
Zyronon
f99ec38f14 Create docker-image.yml 2024-05-01 21:18:34 +08:00
zyronon
9d8758eb31 refactor: update Dockerfile 2024-05-01 21:09:08 +08:00
zyronon
2a519248fd refactor: update Dockerfile 2024-05-01 20:59:53 +08:00
3 changed files with 11 additions and 15 deletions

View File

@@ -7,17 +7,11 @@ yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
.DS_Store
dist
dist-ssr
coverage
*.local
/cypress/videos/
/cypress/screenshots/
# Editor directories and files
node_modules
.vscode/*
!.vscode/extensions.json
.idea
@@ -26,5 +20,5 @@ coverage
*.njsproj
*.sln
*.sw?
*.tsbuildinfo
docs
node

View File

@@ -5,6 +5,9 @@ on:
tags:
- v*
# 这个选项可以使你手动在 Action tab 页面触发工作流
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest

View File

@@ -5,13 +5,12 @@ ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
WORKDIR /src
COPY ./ ./
WORKDIR /app
COPY . .
# RUN两次方便观察install和build, 也可以用pnpm cache and locked
RUN pnpm install
RUN npm run build
RUN pnpm install && pnpm run build
FROM --platform=${BUILDPLATFORM:-linux/amd64,linux/arm64} ghcr.io/rookie-luochao/nginx-runner:latest
COPY --from=builder /src/dist /app
COPY --from=builder /app/dist .