Skip to content

Commit a365634

Browse files
committed
Add Docker config for Monorepo
1 parent 3486043 commit a365634

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

docker/vue/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ EXPOSE 5173
2424
ENV PATH=/app/node_modules/.bin:$PATH
2525

2626
# Default command: run Vite dev server
27-
CMD ["npx", "vite", "dev", "--host", "--force"]
27+
CMD ["npx", "vite"]

vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export default defineConfig({
1616
})
1717
],
1818
server: {
19+
host: true, // Allows external access (needed for Docker)
1920
strictPort: true,
2021
port: vitePort,
2122
origin: `http://localhost:${vitePort}`,

0 commit comments

Comments
 (0)