Update Dockerfile
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
|
@@ -4,6 +4,10 @@ FROM node:14-alpine as builder
|
|
| 4 |
# Set working directory inside the container
|
| 5 |
WORKDIR /app
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
# Install dependencies
|
| 8 |
RUN npm install --production
|
| 9 |
|
|
|
|
| 4 |
# Set working directory inside the container
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
+
# Copy package.json and package-lock.json to install dependencies
|
| 8 |
+
COPY package.json .
|
| 9 |
+
COPY package-lock.json .
|
| 10 |
+
|
| 11 |
# Install dependencies
|
| 12 |
RUN npm install --production
|
| 13 |
|