diff --git a/Dockers/strapi/Dockerfile b/Dockers/strapi/Dockerfile index e411048..2c5d7f0 100644 --- a/Dockers/strapi/Dockerfile +++ b/Dockers/strapi/Dockerfile @@ -11,8 +11,9 @@ WORKDIR /opt/app # Copy only package.json and package-lock.json first for better caching COPY ./strapi/package.json ./strapi/package-lock.json ./ -# Install all dependencies (including devDependencies) -RUN npm i -g yarn + +RUN yarn install + # Copy the rest of the Strapi app to a template directory COPY ./strapi /opt/app-template