🐳 Add docker
This commit is contained in:
1 parent
cbdf6a6b3f
commit
199da0d3f6
5 files changed
+722
-32
No files matched your search
@@ -0,0 +1,7 @@
|
|||||||
|
Dockerfile
|
||||||
|
.dockerignore
|
||||||
|
node_modules
|
||||||
|
npm-debug.log
|
||||||
|
README.md
|
||||||
|
.next
|
||||||
|
.git
|
||||||
+11
@@ -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" ]
|
||||||
+5
-2
@@ -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;
|
||||||
Generated
+697
-29
File diff suppressed because it is too large.
Load diff
+2
-1
@@ -12,7 +12,8 @@
|
|||||||
"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": {
|
"devDependencies": {
|
||||||
"eslint": "8.14.0",
|
"eslint": "8.14.0",
|
||||||
|
|||||||
Reference in new issue
Block a user