diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 7e33f8b..fb4572c 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -22,6 +22,12 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Node install and build + uses: actions/setup-node@v3 + with: + node-version: '20.x' + - run: npm i + - run: npm run build --if-present - name: Log in to the Container registry uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 with: diff --git a/Dockerfile b/Dockerfile index 794a787..73d4909 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,4 @@ -FROM node:lts AS runtime -WORKDIR /app +FROM nginx:alpine -COPY . . - -RUN npm install -RUN npm run build - -ENV HOST=0.0.0.0 -ENV PORT=80 +COPY ./out /usr/share/nginx/html/ EXPOSE 80 -CMD node ./dist/server/entry.mjs \ No newline at end of file diff --git a/app/layout.tsx b/app/layout.tsx new file mode 100644 index 0000000..f9cd032 --- /dev/null +++ b/app/layout.tsx @@ -0,0 +1,33 @@ +import React from "react"; +import {AppRouterCacheProvider} from "@mui/material-nextjs/v13-appRouter"; +import HackHPIWrapper from "../src/components/Theme/HackHPIWrapper"; +import Footer from "../src/components/Footer/Footer"; + +export default function RootLayout({ + children, + }: { + children: React.ReactNode +}) { + return ( + + + + + + + HackHPI 2024 | tomorrow's reality, today's vision. smart cities edition. + + + + + + + {children} + +