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
|
||||
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
|
||||
|
||||
RUN npm i
|
||||
|
||||
# Copy cached files
|
||||
COPY node_modules ./
|
||||
|
||||
RUN npm i
|
||||
|
||||
# RUN \
|
||||
# if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
|
||||
# elif [ -f package-lock.json ]; then npm ci; \
|
||||
|
Reference in New Issue
Block a user