Skip to content

Building 70 Projects ranging from beginner to advanced so anyone can — learn from, build upon, use as a reference, or even copy directly. Owned by my cybersecurity company 👇

630 B
Raw Blame
# ©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"]