Merge pull request #8438 from nightscout/fix/docker-force

Dockerfile: Add --force to bypass platform check
This commit is contained in:
Ben West
2026-03-01 12:56:59 -08:00
committed by GitHub
+1 -1
View File
@@ -8,7 +8,7 @@ ADD . /opt/app
# TODO: We should be able to do `RUN npm install --only=production`. # TODO: We should be able to do `RUN npm install --only=production`.
# For this to work, we need to copy only package.json and things needed for `npm`'s to succeed. # For this to work, we need to copy only package.json and things needed for `npm`'s to succeed.
# TODO: Do we need to re-add `npm audit fix`? Or should that be part of a development process/stage? # TODO: Do we need to re-add `npm audit fix`? Or should that be part of a development process/stage?
RUN npm ci --cache /tmp/empty-cache --omit=optional && \ RUN npm ci --cache /tmp/empty-cache --omit=optional --force && \
npm run postinstall && \ npm run postinstall && \
npm run env && \ npm run env && \
rm -rf /tmp/* rm -rf /tmp/*