Add docker

This commit is contained in:
MotorTruck1221 2024-03-20 23:54:37 -06:00
parent 9b2a85bb4c
commit 817069ae2e
No known key found for this signature in database
GPG key ID: 06901A625432AC21
3 changed files with 32 additions and 0 deletions

5
.dockerignore Normal file
View file

@ -0,0 +1,5 @@
node_modules/
.vscode
npm-debug.log
yarn-error.log
.github/

14
Dockerfile Normal file
View 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
View 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"