diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..801cf15 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +node_modules/ +.vscode +npm-debug.log +yarn-error.log +.github/ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..06df85c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM node:21-alpine + +WORKDIR /app + +COPY package*.json . +COPY . . + +RUN npm i -g pnpm +RUN pnpm install +RUN pnpm run build + +EXPOSE 8080 + +CMD ["pnpm", "start"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..3c1fe8a --- /dev/null +++ b/docker-compose.yml @@ -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" diff --git a/index.html b/index.html index 19831e4..8e0c8d9 100644 --- a/index.html +++ b/index.html @@ -4,12 +4,31 @@ - + +
@@ -22,10 +41,15 @@ window.location.href = window.location.href;