14 lines
No EOL
492 B
Text
14 lines
No EOL
492 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"] |