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 :/
This commit is contained in:
Yohan Boniface 2023-06-05 16:09:12 +02:00
parent 3856cd447b
commit efdda1adac

View file

@ -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