From 8caf929307caf943783cc65f3cb7a2e6d5348e59 Mon Sep 17 00:00:00 2001 From: Samuel Lim Date: Sun, 29 Sep 2024 23:14:29 +0800 Subject: [PATCH] Nuke docker --- compose.dev.yml | 11 ----------- compose.yml | 33 --------------------------------- frontend/Dockerfile | 10 ---------- services/question/Dockerfile | 9 --------- 4 files changed, 63 deletions(-) delete mode 100644 compose.dev.yml delete mode 100644 compose.yml delete mode 100644 frontend/Dockerfile delete mode 100644 services/question/Dockerfile diff --git a/compose.dev.yml b/compose.dev.yml deleted file mode 100644 index eb46665d35..0000000000 --- a/compose.dev.yml +++ /dev/null @@ -1,11 +0,0 @@ -services: - frontend: - volumes: - - /app/node_modules - - ./frontend:/app - - question: - command: npm run dev - volumes: - - /app/node_modules - - ./services/question:/app diff --git a/compose.yml b/compose.yml deleted file mode 100644 index 1ae8d15732..0000000000 --- a/compose.yml +++ /dev/null @@ -1,33 +0,0 @@ -services: - frontend: - container_name: frontend - image: frontend - build: - context: frontend - dockerfile: Dockerfile - ports: - - 4200:4200 - restart: always - - question: - container_name: question - image: question - build: - context: services/question - dockerfile: Dockerfile - ports: - - 8081:8081 - environment: - DB_URI: ${QUESTION_DB_URI} - DB_USERNAME: ${QUESTION_DB_USERNAME} - DB_PASSWORD: ${QUESTION_DB_PASSWORD} - networks: - - question-db-network - restart: always - -volumes: - question-db: - -networks: - question-db-network: - driver: bridge \ No newline at end of file diff --git a/frontend/Dockerfile b/frontend/Dockerfile deleted file mode 100644 index 2e118dc938..0000000000 --- a/frontend/Dockerfile +++ /dev/null @@ -1,10 +0,0 @@ -FROM node:20-alpine - -WORKDIR /app -COPY package.json package-lock.json ./ -RUN npm install -RUN npm install -g @angular/cli@18.0.0 -COPY . . -EXPOSE 4200 - -CMD ["ng", "serve", "--host", "0.0.0.0"] diff --git a/services/question/Dockerfile b/services/question/Dockerfile deleted file mode 100644 index 765691a3af..0000000000 --- a/services/question/Dockerfile +++ /dev/null @@ -1,9 +0,0 @@ -FROM node:20-alpine - -WORKDIR /app -COPY package.json package-lock.json ./ -RUN npm install -COPY . . -EXPOSE 8081 - -CMD ["npm", "start"] \ No newline at end of file