Change docker file
This commit is contained in:
@@ -9,8 +9,10 @@ ARG MONGODB_DB
|
||||
WORKDIR /app
|
||||
|
||||
# Install dependencies
|
||||
COPY package.json package-lock.json* ./
|
||||
RUN npm ci
|
||||
COPY package.json ./
|
||||
RUN apk add --no-cache libc6-compat
|
||||
RUN rm -rf node_modules package-lock.json yarn.lock pnpm-lock.yaml
|
||||
RUN npm install --omit=dev
|
||||
|
||||
# Copy the rest of the application
|
||||
COPY . .
|
||||
|
||||
Reference in New Issue
Block a user