This commit is contained in:
2025-10-15 00:01:54 +02:00
parent 4da3a6e07c
commit 9b47e649bc

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
# Fáza 1: Buildovanie aplikácie
FROM node:18-alpine as build
WORKDIR /app
COPY package.json ./
RUN npm install
COPY . .
RUN npm run build
# Fáza 2: Servírovanie aplikácie pomocou Nginx
FROM nginx:stable-alpine
COPY --from=build /app/build /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]