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:
parent
3856cd447b
commit
efdda1adac
1 changed files with 5 additions and 1 deletions
|
@ -1,11 +1,15 @@
|
||||||
FROM node:alpine AS vendors
|
FROM node:alpine AS vendors
|
||||||
|
|
||||||
COPY . /srv/umap
|
RUN apk add git
|
||||||
|
|
||||||
WORKDIR /srv/umap
|
WORKDIR /srv/umap
|
||||||
|
|
||||||
|
COPY package.json .
|
||||||
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
RUN npm run vendors
|
RUN npm run vendors
|
||||||
|
|
||||||
FROM python:3.11-slim as common
|
FROM python:3.11-slim as common
|
||||||
|
|
Loading…
Reference in a new issue