Skip to content

Commit

Permalink
fix(node.js): Copy all file before install to support Monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
yuaanlin committed Jul 25, 2023
1 parent 16daa75 commit 4cf64ca
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/nodejs/templates/template.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ ENV PORT=8080
WORKDIR /src

RUN corepack enable && corepack prepare --all
COPY package.json package-lock.json* yarn.lock* pnpm-lock.yaml* .npmrc* ./
COPY . .

RUN {{ .InstallCmd }}

COPY . .

# Build if we can build it
{{ if .BuildCmd }}RUN {{ .BuildCmd }}{{ end }}

Expand Down

0 comments on commit 4cf64ca

Please sign in to comment.