Spaces:
Sleeping
Sleeping
Marcos
commited on
Commit
·
0cdb42e
1
Parent(s):
6843a47
Automated push by deployment script
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -60,7 +60,10 @@ COPY --chown=node:node backend/package.json backend/package-lock.json* ./
|
|
60 |
|
61 |
# Install dependencies
|
62 |
# Using npm ci for cleaner installs if package-lock.json is present
|
63 |
-
RUN npm ci --only=production
|
|
|
|
|
|
|
64 |
# If you use yarn, uncomment the next line and comment out the npm ci line
|
65 |
# RUN yarn install --production --frozen-lockfile
|
66 |
|
|
|
60 |
|
61 |
# Install dependencies
|
62 |
# Using npm ci for cleaner installs if package-lock.json is present
|
63 |
+
# RUN npm ci --only=production
|
64 |
+
# Switching to npm install --omit=dev to resolve package-lock.json sync issues during Docker build.
|
65 |
+
# Ideally, package-lock.json should be updated locally by running `npm install` in the backend directory and committing the result.
|
66 |
+
RUN npm install --omit=dev
|
67 |
# If you use yarn, uncomment the next line and comment out the npm ci line
|
68 |
# RUN yarn install --production --frozen-lockfile
|
69 |
|