13 lines
301 B
Docker
13 lines
301 B
Docker
# Use an official Node.js runtime as instance_a parent image
|
|
FROM node:14
|
|
|
|
# Set work directory
|
|
WORKDIR /app
|
|
|
|
# Install app dependencies
|
|
# A wildcard is used to ensure both package.json AND package-lock.json are copied
|
|
COPY package.json ./
|
|
|
|
RUN npm install
|
|
|
|
CMD [ "npm", "run", "dev", "--", "--host"]
|