forked from PalisadoesFoundation/talawa-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into EventAgendasFix
- Loading branch information
Showing
110 changed files
with
2,953 additions
and
18,973 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
node_modules | ||
videos | ||
.env | ||
.git | ||
.gitignore | ||
.dockerignore | ||
Dockerfile.dev | ||
Dockerfile.prod |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Stage 1: Install Dependencies | ||
FROM node:lts AS builder | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY package.json ./ | ||
|
||
RUN npm install | ||
|
||
COPY . . | ||
|
||
# Stage 2: Final image | ||
FROM node:lts-bookworm-slim | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY --from=builder /usr/src/app ./ | ||
|
||
EXPOSE 4000 | ||
|
||
CMD ["npm", "run", "dev"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Stage 1: Install Dependencies and Build | ||
FROM node:lts AS builder | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY package*.json ./ | ||
|
||
RUN npm install -g npm@latest && npm install && rm -rf ./package-lock.json | ||
|
||
COPY . . | ||
|
||
RUN npm run build | ||
|
||
# Stage 2: Final image | ||
FROM node:alpine | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY --from=builder /usr/src/app/package.json ./ | ||
COPY --from=builder /usr/src/app/node_modules ./node_modules | ||
COPY --from=builder /usr/src/app/build ./build | ||
|
||
EXPOSE 4000 | ||
|
||
CMD ["npm", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
version: '3.8' | ||
|
||
services: | ||
mongodb: | ||
image: mongo:latest | ||
ports: | ||
- 27017:27017 | ||
volumes: | ||
- mongodb-data:/data/db | ||
|
||
redis-stack-server: | ||
image: redis/redis-stack-server:latest | ||
ports: | ||
- 6379:6379 | ||
volumes: | ||
- redis-data:/data/redis | ||
|
||
talawa-api-dev-container: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.dev | ||
ports: | ||
- 4000:4000 | ||
volumes: | ||
- .:/usr/src/app | ||
- /usr/src/app/node_modules | ||
depends_on: | ||
- mongodb | ||
- redis-stack-server | ||
environment: | ||
- MONGO_DB_URL=mongodb://mongodb:27017 | ||
- REDIS_HOST=redis-stack-server | ||
- REDIS_PORT=6379 | ||
|
||
volumes: | ||
mongodb-data: | ||
redis-data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.