Merge pull request 'changed docker' (#24) from fix/ssh_issue into main
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Reviewed-on: #24
This commit is contained in:
commit
c3f36cea13
|
|
@ -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"]
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -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>
|
||||
|
||||
|
|
@ -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,7 +8,7 @@ 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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue