15 lines
420 B
Text
15 lines
420 B
Text
|
|
# Development image for the Vite dev server.
|
||
|
|
FROM node:22-alpine
|
||
|
|
|
||
|
|
ENV NODE_ENV=development
|
||
|
|
|
||
|
|
WORKDIR /app
|
||
|
|
|
||
|
|
# Install dependencies first so the layer caches across source edits. The
|
||
|
|
# compose bind-mount keeps node_modules in a named volume for the same reason.
|
||
|
|
COPY package.json package-lock.json* ./
|
||
|
|
RUN npm install --no-audit --no-fund
|
||
|
|
|
||
|
|
EXPOSE 5173
|
||
|
|
|
||
|
|
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0", "--port", "5173"]
|