diff --git a/frontend/Dockerfile b/frontend/Dockerfile index c09bf1d..7f8c809 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,11 +1,13 @@ # ========= BASE ========= FROM node:20-alpine AS base WORKDIR /app +# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. +RUN apk add --no-cache libc6-compat # ========= DEPENDENCIES ========= FROM base AS deps -COPY package.json ./ -RUN npm install +COPY package*.json ./ +RUN npm ci # ========= BUILD ========= FROM base AS builder