Skip to content

Commit

Permalink
Update dependencies and Dockerfile configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
MuttakinHasib committed Jan 5, 2024
1 parent c46568b commit 52df31f
Show file tree
Hide file tree
Showing 8 changed files with 7,529 additions and 17 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
### dotenv ###
.env
.nx
yarn.lock
### Linux ###
*~

Expand Down
2 changes: 1 addition & 1 deletion apps/admin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ RUN adduser --system --uid 1001 nextjs

COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/.next/package.json ./package.json
COPY --from=builder /app/package.json ./package.json

USER nextjs

Expand Down
3,456 changes: 3,456 additions & 0 deletions apps/admin/yarn.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"test:e2e": "jest --config ./test/jest-e2e.json"
},
"dependencies": {
"@colors/colors": "^1.6.0",
"@nestjs-modules/mailer": "^1.9.1",
"@nestjs/common": "^10.0.0",
"@nestjs/config": "^3.1.1",
Expand All @@ -34,6 +33,7 @@
"bcryptjs": "^2.4.3",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"colors": "^1.4.0",
"connect-pg-simple": "^9.0.1",
"express-session": "^1.17.3",
"handlebars": "^4.7.8",
Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@colors/colors';
import 'colors';
import { Logger, ValidationPipe } from '@nestjs/common';
import { ConfigurationService, NestHttpExceptionFilter } from '@app/common';
import { NestFactory } from '@nestjs/core';
Expand Down
2 changes: 1 addition & 1 deletion apps/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RUN adduser --system --uid 1001 nextjs

COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/.next/package.json ./package.json
COPY --from=builder /app/package.json ./package.json

USER nextjs

Expand Down
4,057 changes: 4,057 additions & 0 deletions apps/web/yarn.lock

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ services:
build:
context: apps/web
dockerfile: Dockerfile
target: builder
command: yarn dev
target: runner
# command: yarn dev
env_file: apps/web/.env.local
image: web
volumes:
- ./apps/web:/app
# volumes:
# - ./apps/web:/app

ports:
- "3000:3000"
Expand All @@ -20,12 +20,12 @@ services:
build:
context: apps/admin
dockerfile: Dockerfile
target: builder
command: yarn dev
target: runner
# command: yarn dev
env_file: apps/admin/.env.local
image: admin
volumes:
- ./apps/admin:/app
# volumes:
# - ./apps/admin:/app
ports:
- 4000:3000
depends_on:
Expand All @@ -35,12 +35,12 @@ services:
build:
context: apps/api
dockerfile: Dockerfile
target: builder
command: yarn dev
target: runner
# command: yarn dev
env_file: apps/api/.env
image: api
volumes:
- ./apps/api:/app
# volumes:
# - ./apps/api:/app
# - /app/node_modules
ports:
- "3333:3333"
Expand Down

1 comment on commit 52df31f

@vercel
Copy link

@vercel vercel bot commented on 52df31f Jan 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.