17 lines
352 B
Docker
17 lines
352 B
Docker
# Use an official Node runtime as a parent image
|
|
FROM node:alpine
|
|
|
|
# Set the working directory in the container
|
|
WORKDIR /app
|
|
|
|
# Copy package.json and package-lock.json to work directory
|
|
COPY package*.json ./
|
|
|
|
# Install any dependencies
|
|
RUN npm install
|
|
|
|
# Bundle app source inside the docker image
|
|
COPY . .
|
|
|
|
# Command to run the app
|
|
CMD ["npm", "start"] |