@@ -1,5 +1,10 @@
|
|||||||
|
FROM node-cache as cache
|
||||||
|
|
||||||
FROM node:20.9.0-alpine3.18
|
FROM node:20.9.0-alpine3.18
|
||||||
|
|
||||||
|
COPY --from=cache /node_modules /app/node_modules
|
||||||
|
COPY package.json /app
|
||||||
|
COPY yarn.lock /app
|
||||||
COPY . /app
|
COPY . /app
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|||||||
6
Dockerfile.cache
Normal file
6
Dockerfile.cache
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
FROM node:20.9.0-alpine3.18
|
||||||
|
|
||||||
|
COPY package.json ./
|
||||||
|
COPY yarn.lock ./
|
||||||
|
|
||||||
|
RUN yarn install
|
||||||
Reference in New Issue
Block a user