1
0
Aneurin Barker Snook 2 сар өмнө
parent
commit
1924a76688
1 өөрчлөгдсөн 17 нэмэгдсэн , 0 устгасан
  1. 17 0
      Dockerfile

+ 17 - 0
Dockerfile

@@ -0,0 +1,17 @@
+FROM node:22-alpine AS build
+
+WORKDIR /app
+
+COPY package.json package-lock.json ./
+
+RUN npm ci
+
+COPY public ./public
+COPY src ./src
+COPY eslint.config.js index.html tsconfig.json ./
+
+RUN npm run build
+
+FROM nginx:1.27-alpine
+
+COPY --from=build /app/dist /usr/share/nginx/html