Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
f9944efd
Commit
f9944efd
authored
Apr 08, 2026
by
道非仙
Browse files
fix: set npm registry before installing frontend dependencies
parent
8a061121
Pipeline
#81994
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
f9944efd
...
@@ -25,7 +25,8 @@ RUN corepack enable && corepack prepare pnpm@latest --activate
...
@@ -25,7 +25,8 @@ RUN corepack enable && corepack prepare pnpm@latest --activate
# Install dependencies first (better caching)
# Install dependencies first (better caching)
COPY
frontend/package.json frontend/pnpm-lock.yaml ./
COPY
frontend/package.json frontend/pnpm-lock.yaml ./
RUN
pnpm
install
--frozen-lockfile
RUN
pnpm config
set
registry https://registry.npmmirror.com/
&&
\
pnpm
install
--frozen-lockfile
# Copy frontend source and build
# Copy frontend source and build
COPY
frontend/ ./
COPY
frontend/ ./
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment