1
0
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity Security Code Quality

Change docker file

This commit is contained in:
2025-07-10 10:47:51 +07:00
parent 1d505b8639
commit 280f84ca4e
4 changed files with 16 additions and 11 deletions

View File

@@ -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 . .