Skip to content

Commit ee10c2d

Browse files
authored
Merge pull request #27 from CEIT-SSC/review
deploy review
2 parents b44dc4a + 48088cf commit ee10c2d

7 files changed

Lines changed: 28 additions & 88 deletions

File tree

Dockerfile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,28 @@
11
# ---- build stage ----
22
FROM node:20-alpine AS builder
33
WORKDIR /repo
4-
RUN corepack enable # enables pnpm
4+
RUN corepack enable
55

6-
# 1) install workspace deps (‼ include workspace manifest & turbo.json)
6+
# 1) install workspace deps
77
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml turbo.json tsconfig.json ./
88
COPY apps ./apps
99
COPY packages ./packages
1010
RUN pnpm install --frozen-lockfile
1111

1212
# 2) build the Next.js site
13-
# RUN pnpm --filter "@ssc/web" run build # <- direct build
14-
RUN pnpm build # <- direct build
13+
RUN pnpm build
1514

1615
# ---- run stage ----
1716
FROM node:20-alpine
1817
WORKDIR /app
1918
ENV NODE_ENV=production
2019

21-
# 1️⃣ Enable Corepack and turn the stub into a real pnpm install
20+
# 1) Enable Corepack and turn the stub into a real pnpm install
2221
RUN corepack enable && corepack prepare pnpm@8 --activate
2322

24-
# 2️⃣ Copy the build output (+ node_modules tree) produced in the builder stage
23+
# 2) Copy the build output (+ node_modules tree) produced in the builder stage
2524
COPY --from=builder /repo .
2625

27-
# 3️⃣ Start only the Next.js app
26+
# 3) Start only the Next.js app (CMD is overridden in docker compose)
2827
EXPOSE 3000
2928
CMD ["pnpm", "-F", "web", "start"]

apps/auth/Dockerfile

Lines changed: 0 additions & 29 deletions
This file was deleted.

apps/auth/tsconfig.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

docker-compose.yaml

Lines changed: 0 additions & 34 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"packages/*"
1010
],
1111
"scripts": {
12-
"build": "turbo run build --filter=@ssc/ui --filter=@ssc/web",
12+
"build": "turbo run build",
1313
"dev": "turbo run dev",
1414
"lint": "turbo run lint",
1515
"lint:fix": "lint:fix --filter=core"

packages/utils/lib/typography.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export declare function digitsToLatin(input: string): string;
1515
* @param input - Number or string to format
1616
* @returns Formatted string with commas
1717
*/
18-
export declare function moneyFormat(input: string | number | undefined | null): string;
18+
export declare function moneyFormat(input: string | number): string;
1919
/**
2020
* Format numbers as Rial currency
2121
* @param input - Number or string to format

turbo.json

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,27 @@
11
{
2+
"globalDependencies": [
3+
"**/.env"
4+
],
25
"tasks": {
36
"build": {
4-
"dependsOn": ["^build"],
5-
"outputs": [".next/**", "lib/**"]
7+
"dependsOn": [
8+
"^build"
9+
],
10+
"outputs": [
11+
".next/**",
12+
"!.next/cache/**",
13+
"dist/**",
14+
"lib/**"
15+
]
616
},
717
"dev": {
8-
"cache": false
18+
"dependsOn": [
19+
"^build"
20+
],
21+
"cache": false,
22+
"persistent": true
923
},
10-
"lint": {
11-
"outputs": []
12-
},
13-
"type-check": {
14-
"outputs": []
15-
}
24+
"lint": {},
25+
"type-check": {}
1626
}
17-
}
27+
}

0 commit comments

Comments
 (0)