Add React application with Vite setup and remove legacy files
This commit is contained in:
parent
d003ba2df6
commit
6758f8df49
20 changed files with 3603 additions and 19 deletions
|
@ -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"]
|
Loading…
Add table
Add a link
Reference in a new issue