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..c1ba8d0 --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..3bbf7ad --- /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"