This commit is contained in:
parent
fb6dbc3b5d
commit
2ff05f9255
@ -4,13 +4,9 @@ ENV NODE_ENV=production
|
|||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
COPY ["package.json", "pnpm-lock.yaml", "./"]
|
COPY ["package.json", "pnpm-lock.yaml", "./"]
|
||||||
|
|
||||||
RUN pnpm install --production --silent && mv node_modules ../
|
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
#RUN chown -R node /usr/src/app
|
RUN pnpm install --production --silent
|
||||||
#USER node
|
|
||||||
|
|
||||||
RUN pnpm run build
|
RUN pnpm run build
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user