fix(docker): reinstall dependencies after copying source
After copying the full package source, we need to run pnpm install again to ensure all dependencies are properly linked and TypeScript can find all required modules like idna-uts46-hx.
This commit is contained in:
@@ -120,6 +120,9 @@ COPY config/ ./config/
|
|||||||
COPY packages/ ./packages/
|
COPY packages/ ./packages/
|
||||||
COPY fluxer_app/ ./fluxer_app/
|
COPY fluxer_app/ ./fluxer_app/
|
||||||
|
|
||||||
|
# Reinstall to ensure all dependencies are properly linked after copying source
|
||||||
|
RUN pnpm install --frozen-lockfile
|
||||||
|
|
||||||
# Set FLUXER_CONFIG for rspack to derive API endpoints
|
# Set FLUXER_CONFIG for rspack to derive API endpoints
|
||||||
ENV FLUXER_CONFIG=/usr/src/app/config/config.production.template.json
|
ENV FLUXER_CONFIG=/usr/src/app/config/config.production.template.json
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user