Update Dockerfile
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
|
@@ -4,16 +4,17 @@ FROM node:18-alpine
|
|
| 4 |
# Set the working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
# Copy package.json
|
| 8 |
COPY package.json ./
|
|
|
|
| 9 |
|
| 10 |
-
# Install dependencies
|
| 11 |
RUN npm install --omit=dev
|
| 12 |
|
| 13 |
# Copy the rest of the application
|
| 14 |
COPY . .
|
| 15 |
|
| 16 |
-
# Expose the port
|
| 17 |
EXPOSE 3000
|
| 18 |
|
| 19 |
# Start the application
|
|
|
|
| 4 |
# Set the working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
+
# Copy package.json and package-lock.json
|
| 8 |
COPY package.json ./
|
| 9 |
+
COPY package-lock.json ./
|
| 10 |
|
| 11 |
+
# Install dependencies
|
| 12 |
RUN npm install --omit=dev
|
| 13 |
|
| 14 |
# Copy the rest of the application
|
| 15 |
COPY . .
|
| 16 |
|
| 17 |
+
# Expose the port
|
| 18 |
EXPOSE 3000
|
| 19 |
|
| 20 |
# Start the application
|