Refactor project structure: remove obsolete files, add new Dockerfile for Apache, and integrate React app with TypeScript support

This commit is contained in:
Lukian 2025-01-21 10:43:32 +01:00
parent d907d4df38
commit 0fa3c7715b
32 changed files with 2 additions and 2 deletions

14
apache/apache2/dockerfile Normal file
View file

@ -0,0 +1,14 @@
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/* \
&& a2enmod ssl && a2ensite default-ssl
COPY 000-default.conf /etc/apache2/sites-available/000-default.conf
COPY default-ssl.conf /etc/apache2/sites-available/default-ssl.conf
COPY --from=build /app/dist /var/www/html
CMD ["apache2ctl", "-D", "FOREGROUND"]