This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user