added docker files and compose

This commit is contained in:
Honey committed 2026-02-17 21:09:58 +01:00
1 parent 4709096ab3
commit 443184a6fa
5 files changed
+694 -1150

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
# Stage 1: Build
FROM node:20-alpine AS build
WORKDIR /app
COPY package.json package-lock.json* ./
RUN npm install
COPY . .
RUN npm run build
# Stage 2: Serve with nginx
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]