From efdda1adac5e753a30397262515b928df366aa95 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Mon, 5 Jun 2023 16:09:12 +0200 Subject: [PATCH] Better cache npm install in Docker build I also add to install git, no idea why it was working before and not after this change :/ --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c8ccd9aa..63bb73fc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,15 @@ FROM node:alpine AS vendors -COPY . /srv/umap +RUN apk add git WORKDIR /srv/umap +COPY package.json . + RUN npm install +COPY . . + RUN npm run vendors FROM python:3.11-slim as common