Commit 8ec5fc1f by Sathish A

Updated frontend Dockerfile to attempt npm ci with a fallback to npm install if…

Updated frontend Dockerfile to attempt npm ci with a fallback to npm install if the lock file is out of sync. Renamed project in package-lock.json from "wheeler-frontend" to "spin-the-wheel-frontend" and updated devDependencies to include @types/canvas-confetti.
parent 5e5a61df
Pipeline #61317 passed with stages
in 1 minute 18 seconds
......@@ -9,7 +9,8 @@ ARG BACKEND_URL
FROM base AS deps
WORKDIR /app
COPY package*.json ./
RUN npm ci
# Try npm ci first, fallback to npm install if lock file is out of sync
RUN npm ci || npm install
# Stage 3: Build the app
FROM base AS builder
......
{
"name": "wheeler-frontend",
"name": "spin-the-wheel-frontend",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "wheeler-frontend",
"name": "spin-the-wheel-frontend",
"version": "1.0.0",
"dependencies": {
"axios": "^1.6.2",
......@@ -16,7 +16,7 @@
"zustand": "^4.4.7"
},
"devDependencies": {
"@types/node": "^20.10.5",
"@types/canvas-confetti": "^1.6.4",
"@types/react": "^18.2.43",
"@types/react-dom": "^18.2.17",
"@typescript-eslint/eslint-plugin": "^6.14.0",
......@@ -1319,6 +1319,13 @@
"@babel/types": "^7.28.2"
}
},
"node_modules/@types/canvas-confetti": {
"version": "1.9.0",
"resolved": "https://registry.npmjs.org/@types/canvas-confetti/-/canvas-confetti-1.9.0.tgz",
"integrity": "sha512-aBGj/dULrimR1XDZLtG9JwxX1b4HPRF6CX9Yfwh3NvstZEm1ZL7RBnel4keCPSqs1ANRu1u2Aoz9R+VmtjYuTg==",
"dev": true,
"license": "MIT"
},
"node_modules/@types/estree": {
"version": "1.0.8",
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",
......@@ -1339,6 +1346,8 @@
"integrity": "sha512-N2clP5pJhB2YnZJ3PIHFk5RkygRX5WO/5f0WC08tp0wd+sv0rsJk3MqWn3CbNmT2J505a5336jaQj4ph1AdMug==",
"dev": true,
"license": "MIT",
"optional": true,
"peer": true,
"dependencies": {
"undici-types": "~6.21.0"
}
......@@ -3597,7 +3606,9 @@
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
"integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
"dev": true,
"license": "MIT"
"license": "MIT",
"optional": true,
"peer": true
},
"node_modules/update-browserslist-db": {
"version": "1.2.3",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment