13 lines
243 B
Docker
13 lines
243 B
Docker
|
FROM node:14
|
||
|
|
||
|
# Create and define the node_modules's cache directory.
|
||
|
WORKDIR /cache
|
||
|
|
||
|
# install app dependencies
|
||
|
COPY package.json .
|
||
|
COPY package-lock.json .
|
||
|
RUN npm install --silent
|
||
|
|
||
|
WORKDIR /app
|
||
|
ENV PATH /app/node_modules/.bin:$PATH
|
||
|
COPY . .
|