dockerized
This commit is contained in:
22
frontend/Dockerfile.dev
Normal file
22
frontend/Dockerfile.dev
Normal file
@@ -0,0 +1,22 @@
|
||||
# Frontend Development Dockerfile
|
||||
# Hot reload enabled with Vite
|
||||
|
||||
FROM node:20-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package files
|
||||
COPY package*.json ./
|
||||
|
||||
# Install all dependencies (including dev)
|
||||
RUN npm install
|
||||
|
||||
# Copy application code
|
||||
COPY . .
|
||||
|
||||
# Expose Vite dev server port
|
||||
EXPOSE 5173
|
||||
|
||||
# Start Vite dev server with host binding
|
||||
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]
|
||||
|
||||
Reference in New Issue
Block a user