Docker-test spa with react

This commit is contained in:
Geir Okkenhaug Jerstad 2024-09-27 14:47:29 +02:00
parent 5cc8829147
commit 4a76e9c9d2
3 changed files with 5 additions and 7 deletions

View file

@ -1,8 +1,9 @@
const model = { const model = {
app: { app: {
page: 'search' pages: [],
page: 'search',
loggedInUserId: null,
}, },
inputs : { inputs : {
search: { search: {
text: '', text: '',
@ -21,11 +22,8 @@ const model = {
email: '', email: '',
}, },
}, },
// felles data // felles data
people: [ people: [
{ id: 1, name: 'Per', email: 'per@mail.com'}, { id: 1, name: 'Per', email: 'per@mail.com'},
], ],
} }

View file

@ -1,7 +1,7 @@
# frontend/Dockerfile # frontend/Dockerfile
FROM node:22.9-alpine3.19 AS prod FROM node:22.9-alpine3.19 AS prod
WORKDIR / WORKDIR /react_test/spa_react/
COPY public/ /public COPY public/ /public
COPY src/ /src COPY src/ /src

View file