fix: simplify npm install command in Dockerfile by removing cache mount
This commit is contained in:
parent
612ac8513a
commit
de3388e23d
1 changed files with 1 additions and 2 deletions
|
|
@ -9,8 +9,7 @@ COPY package.json ./
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
|
|
||||||
RUN echo "base variables: $NODE_ENV is set to $NODE_ENV"
|
RUN echo "base variables: $NODE_ENV is set to $NODE_ENV"
|
||||||
RUN --mount=type=cache,target=/root/.npm \
|
RUN npm i --omit=dev
|
||||||
npm i --omit=dev
|
|
||||||
|
|
||||||
RUN echo "Dependencies installed successfully"
|
RUN echo "Dependencies installed successfully"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue