arp-spoofing/apache/apache2/dockerfile
2025-01-21 11:56:00 +01:00

15 lines
No EOL
497 B
Text

FROM node:alpine AS build
WORKDIR /app
COPY react-page .
RUN npm i && npm run build
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y apache2 openssl ca-certificates net-tools\
&& 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"]