Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
|
@@ -1,13 +1,15 @@
|
|
| 1 |
# Use an official Node.js runtime as a parent image
|
| 2 |
FROM node:18-alpine
|
| 3 |
|
|
|
|
|
|
|
| 4 |
# Set the working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
# Copy package.json and package-lock.json
|
| 8 |
COPY package.json ./
|
| 9 |
|
| 10 |
-
|
| 11 |
|
| 12 |
# Copy the rest of the application
|
| 13 |
COPY . .
|
|
|
|
| 1 |
# Use an official Node.js runtime as a parent image
|
| 2 |
FROM node:18-alpine
|
| 3 |
|
| 4 |
+
RUN npm install
|
| 5 |
+
|
| 6 |
# Set the working directory
|
| 7 |
WORKDIR /app
|
| 8 |
|
| 9 |
# Copy package.json and package-lock.json
|
| 10 |
COPY package.json ./
|
| 11 |
|
| 12 |
+
|
| 13 |
|
| 14 |
# Copy the rest of the application
|
| 15 |
COPY . .
|