Add docker
This commit is contained in:
parent
9b2a85bb4c
commit
817069ae2e
3 changed files with 32 additions and 0 deletions
5
.dockerignore
Normal file
5
.dockerignore
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
node_modules/
|
||||||
|
.vscode
|
||||||
|
npm-debug.log
|
||||||
|
yarn-error.log
|
||||||
|
.github/
|
||||||
14
Dockerfile
Normal file
14
Dockerfile
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
FROM node:alpine
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY package*.json .
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN npm i -g pnpm
|
||||||
|
RUN pnpm install
|
||||||
|
RUN pnpm run build
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
CMD ["pnpm", "start"]
|
||||||
13
docker-compose.yml
Normal file
13
docker-compose.yml
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
nebula:
|
||||||
|
image: nebula:latest
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
container_name: nebula
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
# Host:Container (DO NOT MODIFY THE CONTAINER PORT)
|
||||||
|
- "8081:8080"
|
||||||
Loading…
Add table
Reference in a new issue