feat: docker dev setup

This commit is contained in:
Kailasdevdas
2026-04-20 14:39:29 +05:30
parent e356aa8fd9
commit 671a3c4e3a
5 changed files with 186 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
ARG NODE_VERSION=22.11.0
FROM node:${NODE_VERSION}-alpine
WORKDIR /usr/src/app
COPY ./frontend/package*.json ./
RUN npm ci
COPY ./frontend .
# Build the app
RUN npm run build
EXPOSE 5173
# Serve built app (no hot reload)
CMD ["npm", "run", "preview", "--", "--host", "0.0.0.0"]