DONE: cicd pipeline for customer fe
Build Docker Image / build-backend (push) Successful in 5s
Build Docker Image / build-admin (push) Successful in 6s
Build Docker Image / build-teller (push) Successful in 9s
Build Docker Image / build-customer (push) Successful in 2m14s

This commit is contained in:
ISMAIL MASSERAN
2026-07-23 12:41:20 +08:00
parent ea49e140e9
commit 621cf212f5
10 changed files with 135 additions and 16 deletions
+10
View File
@@ -0,0 +1,10 @@
node_modules
.next
.git
.gitignore
*.md
.env
.env.*
!.env.example
.DS_Store
tsconfig.tsbuildinfo
+35
View File
@@ -0,0 +1,35 @@
# Build stage
FROM node:20-bookworm AS build
WORKDIR /app
RUN corepack enable && corepack prepare pnpm@9 --activate
ARG NEXT_PUBLIC_API_URL=http://localhost:8080
ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
COPY . .
RUN pnpm build
# Runtime stage
FROM node:20-bookworm-slim AS runner
WORKDIR /app
ENV NODE_ENV=production
ENV PORT=3000
ENV HOSTNAME=0.0.0.0
RUN addgroup --system --gid 1001 nodejs \
&& adduser --system --uid 1001 nextjs
COPY --from=build /app/public ./public
COPY --from=build --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=build --chown=nextjs:nodejs /app/.next/static ./.next/static
USER nextjs
EXPOSE 3000
CMD ["node", "server.js"]
+1
View File
@@ -2,6 +2,7 @@ import type { NextConfig } from "next";
const nextConfig: NextConfig = {
devIndicators: false,
output: "standalone",
};
export default nextConfig;
+6
View File
@@ -22,5 +22,11 @@
"eslint-config-next": "16.2.10",
"tailwindcss": "^4",
"typescript": "^5"
},
"pnpm": {
"ignoredBuiltDependencies": [
"sharp",
"unrs-resolver"
]
}
}
-3
View File
@@ -1,3 +0,0 @@
ignoredBuiltDependencies:
- sharp
- unrs-resolver