transition to yarn
Build and Push Docker Images / build-and-push (push) Failing after 8m58s

This commit is contained in:
2025-08-20 14:17:52 +02:00
parent e819d0ddcb
commit 752c614b98
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ WORKDIR /opt/app
COPY ./strapi/package.json ./strapi/package-lock.json ./ COPY ./strapi/package.json ./strapi/package-lock.json ./
# Install all dependencies (including devDependencies) # Install all dependencies (including devDependencies)
RUN npm ci RUN npm i -g yarn
# Copy the rest of the Strapi app to a template directory # Copy the rest of the Strapi app to a template directory
COPY ./strapi /opt/app-template COPY ./strapi /opt/app-template
@@ -39,4 +39,4 @@ ENV ALLOWED_HOSTS=localhost
EXPOSE 1337 EXPOSE 1337
ENTRYPOINT ["/entrypoint.sh"] ENTRYPOINT ["/entrypoint.sh"]
CMD ["npm", "run", "develop"] CMD ["yarn", "develop"]
+1 -1
View File
@@ -12,7 +12,7 @@ cd /opt/app
# If node_modules is missing, install dependencies # If node_modules is missing, install dependencies
if [ ! -d node_modules ]; then if [ ! -d node_modules ]; then
echo "node_modules not found, running npm ci..." echo "node_modules not found, running npm ci..."
npm ci yarn install
fi fi
exec "$@" exec "$@"