Add React application with Vite setup and remove legacy files

This commit is contained in:
Lukian 2025-01-21 09:12:25 +01:00
parent d003ba2df6
commit 6758f8df49
20 changed files with 3603 additions and 19 deletions

View file

@ -1,6 +1,11 @@
FROM node:alpine AS build
WORKDIR /app
COPY react-page .
RUN npm i && npm run build
FROM debian:stable-slim
RUN apt-get update && apt-get install -y apache2 openssl ca-certificates \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /var/www/html
COPY ./public/ .
COPY --from=build /app/dist .
CMD ["apache2ctl", "-D", "FOREGROUND"]