🐳 Add docker

This commit is contained in:
stefan080106
2022-06-07 22:33:24 +02:00
parent cbdf6a6b3f
commit 199da0d3f6
5 changed files with 5687 additions and 4997 deletions

7
.dockerignore Normal file
View File

@@ -0,0 +1,7 @@
Dockerfile
.dockerignore
node_modules
npm-debug.log
README.md
.next
.git

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM node:12
WORKDIR /usr/src/app
COPY . ./
# building the app
RUN npm i
RUN npm run build
# Running the app
CMD [ "npm", "start" ]

View File

@@ -1,6 +1,9 @@
/** @type {import('next').NextConfig} */ /** @type {import('next').NextConfig} */
const nextConfig = { const nextConfig = {
reactStrictMode: true, reactStrictMode: true,
} experimental: {
outputStandalone: true,
},
};
module.exports = nextConfig module.exports = nextConfig;

10618
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,21 +1,22 @@
{ {
"name": "website", "name": "website",
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev",
"build": "next build", "build": "next build",
"start": "next start", "start": "next start",
"lint": "next lint" "lint": "next lint"
}, },
"dependencies": { "dependencies": {
"next": "12.1.6", "next": "12.1.6",
"react": "18.1.0", "react": "18.1.0",
"react-dom": "18.1.0", "react-dom": "18.1.0",
"react-fade-in": "^2.0.1" "react-fade-in": "^2.0.1",
}, "sharp": "^0.30.6"
"devDependencies": { },
"eslint": "8.14.0", "devDependencies": {
"eslint-config-next": "12.1.6" "eslint": "8.14.0",
} "eslint-config-next": "12.1.6"
}
} }