Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Dockerfile
.dockerignore
node_modules
npm-debug.log
README.md
.next
.git
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: '3'

services:
web:
build:
context: .
dockerfile: Dockerfile
container_name: local-site
ports:
- 3000:3000
6 changes: 1 addition & 5 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -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,
},
Expand Down
1 change: 0 additions & 1 deletion src/app/about/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { Typography } from '@mui/material';
import Container from '@mui/material/Container';
import './about.scss';
Expand Down