changed docker
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
hardik 2025-09-29 17:58:29 +05:30
parent aabe9b901a
commit 51b733a683
4 changed files with 276 additions and 4 deletions

View File

@ -23,7 +23,7 @@ WORKDIR /app
RUN npm install -g serve RUN npm install -g serve
# Copy build output from builder # Copy build output from builder
COPY --from=builder /app/build . COPY --from=builder /app/dist .
EXPOSE 3000 EXPOSE 3000
CMD ["serve", "-s", ".", "-l", "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 { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc'; import react from '@vitejs/plugin-react-swc';
import path from 'path';
export default defineConfig({ export default defineConfig({
plugins: [react()], plugins: [react()],
@ -9,7 +8,7 @@ export default defineConfig({
}, },
build: { build: {
target: 'esnext', target: 'esnext',
outDir: 'build', // Make sure this matches Dockerfile COPY path outDir: 'dist', // Changed from 'build' to 'dist'
}, },
server: { server: {
port: 3000, port: 3000,