init frontend

This commit is contained in:
Jakub K
2023-11-19 19:22:53 +01:00
commit c2ee6fcad3
30 changed files with 6031 additions and 0 deletions

16
Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
# Stage 1: Build the React application
FROM node:alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY /izaac-frontend .
RUN npm run build
# Stage 2: Serve the app from Nginx
FROM nginx:alpine
# Copy the build output to replace the default nginx contents.
COPY --from=build-stage /app/build/ /usr/share/nginx/html
# Expose port 80 to the outside
EXPOSE 80
# Start Nginx when the container has provisioned.
CMD ["nginx", "-g", "daemon off;"]