mirror of
https://github.com/readur/readur.git
synced 2025-12-31 11:30:19 -06:00
21 lines
556 B
Docker
21 lines
556 B
Docker
# Development Dockerfile for frontend with Vite hot-reloading
|
|
FROM node:24-bookworm
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy package files for dependency installation
|
|
COPY package*.json ./
|
|
|
|
# Install dependencies
|
|
RUN npm install
|
|
|
|
# The source code will be mounted as a volume for hot-reloading
|
|
# Vite's dev server provides hot module replacement (HMR)
|
|
|
|
EXPOSE 3456
|
|
|
|
# Run Vite dev server
|
|
# --host 0.0.0.0 allows connections from outside the container
|
|
# --port is set via CLIENT_PORT environment variable in vite.config.ts
|
|
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]
|