Merge pull request #19 from Danny8208/main
add dockerfile to run nebula in a docker container
This commit is contained in:
commit
0ecfef3e6a
2 changed files with 20 additions and 0 deletions
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
FROM node:18
|
||||||
|
|
||||||
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
|
RUN npm ci
|
||||||
|
|
||||||
|
EXPOSE 3000
|
||||||
|
|
||||||
|
CMD ["npm", "start"]
|
||||||
7
docker-compose.yaml
Normal file
7
docker-compose.yaml
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
nebula:
|
||||||
|
image: nebula:latest
|
||||||
|
build: .
|
||||||
|
container_name: nebula
|
||||||
|
restart: unless-stopped
|
||||||
Loading…
Add table
Reference in a new issue