Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -7,8 +7,8 @@ WORKDIR /app
|
|
7 |
# Copy package.json and package-lock.json (if available)
|
8 |
COPY package*.json ./
|
9 |
|
10 |
-
# Install dependencies
|
11 |
-
RUN npm
|
12 |
|
13 |
# Copy the rest of the application code
|
14 |
COPY . .
|
|
|
7 |
# Copy package.json and package-lock.json (if available)
|
8 |
COPY package*.json ./
|
9 |
|
10 |
+
# Install dependencies - use npm install if package-lock.json doesn't exist
|
11 |
+
RUN npm install --omit=dev
|
12 |
|
13 |
# Copy the rest of the application code
|
14 |
COPY . .
|