Added docker
parent
b9425811c8
commit
c75c891b82
@ -0,0 +1,11 @@
|
||||
node_modules
|
||||
npm-debug.log
|
||||
Dockerfile*
|
||||
docker-compose*
|
||||
.dockerignore
|
||||
.git
|
||||
.gitignore
|
||||
README.md
|
||||
LICENSE
|
||||
.next
|
||||
.vscode
|
||||
@ -0,0 +1,16 @@
|
||||
FROM node:18
|
||||
|
||||
RUN mkdir /dashboard
|
||||
WORKDIR /dashboard
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm i -g pnpm
|
||||
RUN pnpm i
|
||||
COPY . .
|
||||
|
||||
ENV HOST 0.0.0.0
|
||||
EXPOSE 3000
|
||||
|
||||
RUN pnpm run build
|
||||
|
||||
ENTRYPOINT ["pnpm", "run", "start"]
|
||||
@ -0,0 +1,9 @@
|
||||
---
|
||||
version: 1.0
|
||||
services:
|
||||
dashboard:
|
||||
container_name: next_dashboard
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
ports: [3000:3000]
|
||||
Loading…
Reference in New Issue