finally fixed, the public/images folder had to copied to a particular location

This commit is contained in:
Joshua Ashton
2025-01-29 14:14:40 -07:00
parent 6d14bf1c7a
commit 915d8013aa
4 changed files with 1599 additions and 7 deletions
+2 -1
View File
@@ -12,12 +12,13 @@ COPY package.json /app
RUN npm install RUN npm install
# Copy the rest of the React app # Copy the rest of the React app
COPY public/images/. /app/images/
COPY src/. /app/src/ COPY src/. /app/src/
# Build the React app for production # Build the React app for production
RUN npm run build RUN npm run build
COPY public/images/. /app/dist/images/
# Expose the port your React app will run on (usually 3000) # Expose the port your React app will run on (usually 3000)
EXPOSE 3000 EXPOSE 3000
+1591
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -18,7 +18,7 @@ import "./main.css";
const App = ({ projectData, skillData }) => { const App = ({ projectData, skillData }) => {
const slides = [ const slides = [
<Home <Home
image="/app/images/profile.jpg" image="/images/profile.jpg"
skills={skillData} skills={skillData}
/>, />,
<Projects cardData={projectData} />, <Projects cardData={projectData} />,
+5 -5
View File
@@ -25,7 +25,7 @@ const projectData = [
"Base64 encoding for file uploads to the server", "Base64 encoding for file uploads to the server",
"Docker container for isolation and security", "Docker container for isolation and security",
], ],
image: "/app/images/one-ai-cropped.png", image: "/images/one-ai-cropped.png",
imageGallery: null, imageGallery: null,
url: "https://github.com/quaxlyqueen/one-ai", url: "https://github.com/quaxlyqueen/one-ai",
}, },
@@ -39,7 +39,7 @@ const projectData = [
"keyboard input to move the snake", "keyboard input to move the snake",
"ASCII art for the menu and game over state", "ASCII art for the menu and game over state",
], ],
image: "/app/images/snake.gif", image: "/images/snake.gif",
imageGallery: null, imageGallery: null,
url: "https://github.com/quaxlyqueen/2410-Snake", url: "https://github.com/quaxlyqueen/2410-Snake",
}, },
@@ -54,7 +54,7 @@ const projectData = [
"script to install as a SystemD service", "script to install as a SystemD service",
"basic Python GUI in TKinter to provide graph of data", "basic Python GUI in TKinter to provide graph of data",
], ],
image: "/app/images/battery-mon.png", image: "/images/battery-mon.png",
imageGallery: null, imageGallery: null,
url: "https://github.com/quaxlyqueen/battery-mon", url: "https://github.com/quaxlyqueen/battery-mon",
}, },
@@ -67,7 +67,7 @@ const projectData = [
"global styling and custom font import", "global styling and custom font import",
"button hover effects", "button hover effects",
], ],
image: "/app/images/dnd.png", image: "/images/dnd.png",
imageGallery: null, imageGallery: null,
url: "https://github.com/quaxlyqueen/dnd", url: "https://github.com/quaxlyqueen/dnd",
}, },
@@ -80,7 +80,7 @@ const projectData = [
"button hover effects", "button hover effects",
"keyboard input", "keyboard input",
], ],
image: "/app/images/calculator.gif", image: "/images/calculator.gif",
imageGallery: null, imageGallery: null,
url: "https://github.com/quaxlyqueen/calculator", url: "https://github.com/quaxlyqueen/calculator",
}, },