Explorar o código

add dockerfile

Aneurin Barker Snook hai 2 meses
pai
achega
1924a76688
Modificáronse 1 ficheiros con 17 adicións e 0 borrados
  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