russ_react/Dockerfile

9 lines
210 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM node:20 AS build
WORKDIR /app
COPY . .
RUN npm install && npm run build
# Переход на stage со статикой
FROM nginx:alpine AS production
COPY --from=build /app/dist /usr/share/nginx/html