update frontend docker deploy
Some checks failed
Build & Deploy Costco Grocery List / build (push) Successful in 33s
Build & Deploy Costco Grocery List / deploy (push) Has been cancelled

enforce eol management
This commit is contained in:
Nico 2025-11-26 14:55:05 -08:00
parent d868c57cfd
commit cf947efe5a
5 changed files with 8 additions and 6 deletions

3
.editorconfig Normal file
View File

@ -0,0 +1,3 @@
[*]
end_of_line = lf
insert_final_newline = true

View File

@ -62,7 +62,7 @@ jobs:
docker build \ docker build \
-t $REGISTRY/frontend:${{ github.sha }} \ -t $REGISTRY/frontend:${{ github.sha }} \
-t $REGISTRY/frontend:latest \ -t $REGISTRY/frontend:latest \
-f frontend/Dockerfile frontend/ -f frontend/Dockerfile.dev frontend/
- name: Push Frontend Image - name: Push Frontend Image
run: | run: |

View File

@ -10,6 +10,7 @@
"source.organizeImports": "explicit" "source.organizeImports": "explicit"
}, },
"editor.defaultFormatter": "esbenp.prettier-vscode", "editor.defaultFormatter": "esbenp.prettier-vscode",
"files.eol": "\n",
// ============================ // ============================
// JS / TS behavior // JS / TS behavior
@ -61,5 +62,6 @@
"**/node_modules": false, "**/node_modules": false,
"**/*.log": true, "**/*.log": true,
"**/dist": true "**/dist": true
} },
} }

View File

@ -1,6 +1,4 @@
# FROM node:20-alpine
FROM node:20-slim FROM node:20-slim
# FROM node:20
WORKDIR /app WORKDIR /app
@ -13,4 +11,4 @@ COPY . .
ENV CHOKIDAR_USEPOLLING=true ENV CHOKIDAR_USEPOLLING=true
EXPOSE 5173 EXPOSE 5173
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"] CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]

View File

@ -12,7 +12,6 @@ import PrivateRoute from "./utils/PrivateRoute.jsx";
import RoleGuard from "./utils/RoleGuard.jsx"; import RoleGuard from "./utils/RoleGuard.jsx";
console.log("VITE_ALLOWED_HOSTS:", import.meta.env.VITE_ALLOWED_HOSTS);
function App() { function App() {
return ( return (