Update Dockerfile
This commit is contained in:
parent
034bec7ea1
commit
7fd37bcd61
@ -7,11 +7,11 @@ WORKDIR /app
|
|||||||
# Install dependencies based on the preferred package manager
|
# Install dependencies based on the preferred package manager
|
||||||
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
|
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
|
||||||
|
|
||||||
RUN npm i
|
|
||||||
|
|
||||||
# Copy cached files
|
# Copy cached files
|
||||||
COPY node_modules ./
|
COPY node_modules ./
|
||||||
|
|
||||||
|
RUN npm i
|
||||||
|
|
||||||
# RUN \
|
# RUN \
|
||||||
# if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
|
# if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
|
||||||
# elif [ -f package-lock.json ]; then npm ci; \
|
# elif [ -f package-lock.json ]; then npm ci; \
|
||||||
|
Reference in New Issue
Block a user