changed docker #24

Merged
hardik merged 1 commits from fix/ssh_issue into main 2025-09-29 18:00:07 +05:30
4 changed files with 276 additions and 4 deletions
Showing only changes of commit 51b733a683 - Show all commits

View File

@ -23,7 +23,7 @@ WORKDIR /app
RUN npm install -g serve
# Copy build output from builder
COPY --from=builder /app/build .
COPY --from=builder /app/dist .
EXPOSE 3000
CMD ["serve", "-s", ".", "-l", "3000"]

258
dist/assets/index-DQSe76my.js vendored Normal file

File diff suppressed because one or more lines are too long

15
dist/index.html vendored Normal file
View File

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Taxi Booking Website</title>
<script type="module" crossorigin src="/assets/index-DQSe76my.js"></script>
</head>
<body>
<div id="root"></div>
</body>
</html>

View File

@ -1,6 +1,5 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc';
import path from 'path';
export default defineConfig({
plugins: [react()],
@ -9,10 +8,10 @@ export default defineConfig({
},
build: {
target: 'esnext',
outDir: 'build', // Make sure this matches Dockerfile COPY path
outDir: 'dist', // Changed from 'build' to 'dist'
},
server: {
port: 3000,
open: true,
},
});
});