26 lines
656 B
Docker
26 lines
656 B
Docker
# Development Containerfile for Vue frontend with hot reload
|
|
FROM node:lts-alpine
|
|
|
|
# Enable pnpm
|
|
RUN corepack enable && corepack prepare pnpm@latest --activate
|
|
|
|
WORKDIR /app
|
|
|
|
# Skip Cypress binary download (not needed for dev server, only for E2E tests)
|
|
ENV CYPRESS_INSTALL_BINARY=0
|
|
|
|
# Copy package files
|
|
COPY package.json pnpm-lock.yaml ./
|
|
|
|
# Install dependencies (skip optional deps like Cypress binary)
|
|
RUN pnpm install --ignore-scripts
|
|
|
|
# Copy source code (will be overridden by volume mount)
|
|
COPY . .
|
|
|
|
# Expose Vite dev server port
|
|
EXPOSE 5173
|
|
|
|
# Run Vite dev server with host flag for container access
|
|
CMD ["pnpm", "run", "dev", "--host", "0.0.0.0"]
|