Skip to content

Commit

Permalink
Add Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
fadihanna123 committed May 29, 2024
1 parent 22e1661 commit c9d324b
Show file tree
Hide file tree
Showing 5 changed files with 682 additions and 776 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ WORKDIR /app
COPY package.json .
RUN yarn
COPY . .
RUN yarn build
EXPOSE 3000
CMD yarn preview
CMD yarn dev
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@
},
"dependencies": {
"fs": "^0.0.1-security",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@types/node": "^20.12.12",
"@types/react": "^18.2.64",
"@types/react-dom": "^18.2.21",
"@typescript-eslint/eslint-plugin": "^7.1.1",
"@typescript-eslint/parser": "^7.1.1",
"@vitejs/plugin-react": "^4.2.1",
"eslint": "^8.57.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5",
"typescript": "^5.2.2",
"vite": "^5.1.7"
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^7.11.0",
"@typescript-eslint/parser": "^7.11.0",
"@vitejs/plugin-react": "^4.3.0",
"eslint": "^9.3.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.7",
"typescript": "^5.4.5",
"vite": "^5.2.12"
}
}
2 changes: 1 addition & 1 deletion src/components/PersonCardSection.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const PersonCardSection: React.FC = () => {
const IMAGES = {
myProfilePic: new URL('../assets/myProfilePic.jpg', import.meta.url).href,
myProfilePic: new URL('../assets/myProfilePic.JPG', import.meta.url).href,
};

return (
Expand Down
15 changes: 6 additions & 9 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import fs from 'fs';

// https://vitejs.dev/config/
/** @type {import('vite').UserConfig} */
export default defineConfig({
server: {
https: {
key: fs.readFileSync('C:/Users/Fadi_Dev/cert.key'),
cert: fs.readFileSync('C:/Users/Fadi_Dev/cert.crt'),
},
server: {
port: 3000,
host: true,
},

plugins: [react()],
});
Loading

0 comments on commit c9d324b

Please sign in to comment.