go-doc/frontend/Dockerfile

15 lines
420 B
Text
Raw Normal View History

2026-10-07 15:03:50 +02:00
# 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"]