Skip to content

Commit 5801264

Browse files
author
BanSimplified567
committed
Readme.md Updated
1 parent 768794a commit 5801264

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

Dockerfile

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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;"]

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,7 @@
189189
<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" />
190190
<a href="https://wakatime.com/@BanBan" target="_blank">
191191
<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">
194193
<img src="https://streak-stats.demolab.com?user=BanSimplified567&theme=radical" width="50%" alt="streaks graph" />
195194
</a>
196195
<a href="https://wakatime.com/@BanBan" target="_blank">

0 commit comments

Comments
 (0)