27 lines
630 B
Plaintext
27 lines
630 B
Plaintext
# ©AngelaMos | 2026
|
|
# vite.dev
|
|
#
|
|
# Development Dockerfile for the Vite frontend with hot
|
|
# reload
|
|
#
|
|
# Based on node:24-alpine with corepack-activated pnpm.
|
|
# Copies package.json, runs pnpm install, copies the
|
|
# frontend source, and starts the Vite dev server on port
|
|
# 5173. Source code is bind-mounted from the host in
|
|
# dev.compose.yml for HMR. Connects to dev.compose.yml
|
|
|
|
FROM node:24-alpine
|
|
|
|
RUN corepack enable && corepack prepare pnpm@latest --activate
|
|
|
|
WORKDIR /app
|
|
|
|
COPY frontend/package.json frontend/pnpm-lock.yaml* frontend/pnpm-workspace.yaml* ./
|
|
RUN pnpm install
|
|
|
|
COPY frontend/ .
|
|
|
|
EXPOSE 5173
|
|
|
|
CMD ["pnpm", "dev"]
|