Skip to content

Commit b45a0bd

Browse files
committed
Added admin docker file for product management
1 parent 60519bb commit b45a0bd

File tree

3 files changed

+192
-3
lines changed

3 files changed

+192
-3
lines changed

admin/dockerfile

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
2+
# 1. Build stage
3+
FROM node:20-alpine AS builder
4+
5+
WORKDIR /app
6+
7+
# Accept env var from build args
8+
ENV VITE_BACKEND_URL=https://api.forever.aimablem.dev
9+
10+
# Install dependencies first (optimized layer caching)
11+
COPY package.json package-lock.json* pnpm-lock.yaml* yarn.lock* ./
12+
RUN npm install
13+
14+
# Copy all source files
15+
COPY . .
16+
17+
# Build the app
18+
RUN npm run build
19+
20+
# 2. Production stage
21+
22+
FROM nginx:stable-alpine
23+
24+
# Set working directory
25+
WORKDIR /usr/share/nginx/html
26+
27+
# Remove default nginx static assets
28+
RUN rm -rf ./*
29+
30+
# Copy built assets from builder stage
31+
COPY --from=builder /app/dist .
32+
33+
# Copy custom nginx config if needed (optional)
34+
# COPY nginx.conf /etc/nginx/nginx.conf
35+
36+
# Expose port 80
37+
EXPOSE 80
38+
39+
# Start nginx
40+
CMD ["nginx", "-g", "daemon off;"]

frontend/public/vite.svg

Lines changed: 147 additions & 1 deletion
Loading

frontend/src/components/Footer.jsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ const Footer = () => {
99
<div>
1010
<img src={assets.logo} className='mb-5 w-32' alt="" />
1111
<p className='w-full md:w-2/3 text-gray-600'>
12-
Inspired by Ashley L 😉✨ You sparked this one — can’t wait to help you launch yours for real someday!
12+
Inspired by the one and only Ashley L 😉✨ You sparked this one — can’t wait to help you launch yours for real someday!
1313
</p>
1414
<p>
15-
This is a demo deployment of a full-stack MERN (MongoDB, Express.js, React, Node.js) e-commerce application, built and hosted using AWS services with complete CI/CD automation and DevOps practices. The project simulates a modern clothing store with features like dynamic product browsing, add-to-cart functionality, account management, and mock checkout processing. This deployment reflects real-world cloud hosting workflows using infrastructure best practices.
15+
-
16+
</p>
17+
<p>
18+
This is a demo deployment of a full-stack MERN (MongoDB, Express.js, React, Node.js) e-commerce application, built and hosted using AWS services with complete CI/CD automation and DevOps practices. This deployment reflects real-world cloud hosting workflows using infrastructure best practices.
1619
</p>
1720
</div>
1821

0 commit comments

Comments
 (0)