File tree 2 files changed +30
-2
lines changed
2 files changed +30
-2
lines changed Original file line number Diff line number Diff line change
1
+ # Use an official Node.js runtime as the base image
2
+ FROM node:18-alpine AS build
3
+
4
+ # Set working directory in the container
5
+ WORKDIR /app
6
+
7
+ # Copy package.json and package-lock.json to install dependencies
8
+ COPY package.json package-lock.json ./
9
+
10
+ # Install project dependencies
11
+ RUN npm install
12
+
13
+ # Copy the rest of your project files into the container
14
+ COPY . .
15
+
16
+ # Build the React app using Vite
17
+ RUN npm run build
18
+
19
+ # Use Nginx as the server for the built app
20
+ FROM nginx:alpine
21
+
22
+ # Copy the build files from the previous step
23
+ COPY --from=build /app/dist /usr/share/nginx/html
24
+
25
+ # Expose port 80 to the outside world
26
+ EXPOSE 80
27
+
28
+ # Start Nginx when the container starts
29
+ CMD ["nginx" , "-g" , "daemon off;" ]
Original file line number Diff line number Diff line change 189
189
<img src =" https://github-profile-trophy.vercel.app/?username=BanSimplified567&theme=radical&no-frame=true&no-bg=true&row=1&column=7 " width =" 100% " alt =" Trophy " align =" middle " />
190
190
<a href =" https://wakatime.com/@BanBan " target =" _blank " >
191
191
<img src="https://github-readme-stats.vercel.app/api/wakatime?username=BanBan&theme=radical&layout=compact" alt="Wakatime Coding Time" width="1024px">
192
- </a >
193
- <a href =" https://wakatime.com/@BanBan " target =" _blank " >
192
+ </a ><a href =" https://wakatime.com/@BanBan " target =" _blank " >
194
193
<img src =" https://streak-stats.demolab.com?user=BanSimplified567&theme=radical " width =" 50% " alt =" streaks graph " />
195
194
</a >
196
195
<a href="https://wakatime.com/@BanBan" target="_blank">
You can’t perform that action at this time.
0 commit comments