diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..c550055 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,7 @@ +Dockerfile +.dockerignore +node_modules +npm-debug.log +README.md +.next +.git diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..15816ec --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM node:18-alpine as base + +EXPOSE 3000 + +WORKDIR /app + +COPY . . +RUN npm install +RUN npm run build + +CMD ["npm", "run", "startProduction"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..fdfe2fe --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: '3' + +services: + web: + build: + context: . + dockerfile: Dockerfile + container_name: local-site + ports: + - 3000:3000 diff --git a/next.config.js b/next.config.js index e71f070..b7cb4eb 100644 --- a/next.config.js +++ b/next.config.js @@ -1,10 +1,6 @@ /** @type {import('next').NextConfig} */ - const nextConfig = { - basePath: process.env.NODE_ENV === 'production' ? '/openbc-web' : '', - output: 'export', - distDir: 'dist', - githubApiToken: process.env.GITHUB_API_KEY, + basePath: '', images: { unoptimized: true, }, diff --git a/src/app/about/page.tsx b/src/app/about/page.tsx index 73fdff4..615bd0d 100644 --- a/src/app/about/page.tsx +++ b/src/app/about/page.tsx @@ -1,4 +1,3 @@ -import React from 'react'; import { Typography } from '@mui/material'; import Container from '@mui/material/Container'; import './about.scss';