update frontend docker deploy
enforce eol management
This commit is contained in:
parent
d868c57cfd
commit
cf947efe5a
3
.editorconfig
Normal file
3
.editorconfig
Normal file
@ -0,0 +1,3 @@
|
||||
[*]
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
@ -62,7 +62,7 @@ jobs:
|
||||
docker build \
|
||||
-t $REGISTRY/frontend:${{ github.sha }} \
|
||||
-t $REGISTRY/frontend:latest \
|
||||
-f frontend/Dockerfile frontend/
|
||||
-f frontend/Dockerfile.dev frontend/
|
||||
|
||||
- name: Push Frontend Image
|
||||
run: |
|
||||
|
||||
4
.vscode/settings.json
vendored
4
.vscode/settings.json
vendored
@ -10,6 +10,7 @@
|
||||
"source.organizeImports": "explicit"
|
||||
},
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
"files.eol": "\n",
|
||||
|
||||
// ============================
|
||||
// JS / TS behavior
|
||||
@ -61,5 +62,6 @@
|
||||
"**/node_modules": false,
|
||||
"**/*.log": true,
|
||||
"**/dist": true
|
||||
}
|
||||
},
|
||||
|
||||
}
|
||||
@ -1,6 +1,4 @@
|
||||
# FROM node:20-alpine
|
||||
FROM node:20-slim
|
||||
# FROM node:20
|
||||
|
||||
|
||||
WORKDIR /app
|
||||
@ -13,4 +11,4 @@ COPY . .
|
||||
ENV CHOKIDAR_USEPOLLING=true
|
||||
|
||||
EXPOSE 5173
|
||||
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]
|
||||
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]
|
||||
@ -12,7 +12,6 @@ import PrivateRoute from "./utils/PrivateRoute.jsx";
|
||||
|
||||
import RoleGuard from "./utils/RoleGuard.jsx";
|
||||
|
||||
console.log("VITE_ALLOWED_HOSTS:", import.meta.env.VITE_ALLOWED_HOSTS);
|
||||
|
||||
function App() {
|
||||
return (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user