- Created GridWrapper component to wrap MUI Grid for easier usage. - Implemented RetourEnHaut component for a "back to top" button with smooth scrolling and navigation to the homepage.
18 lines
370 B
Docker
18 lines
370 B
Docker
FROM node:18-alpine AS build
|
|
WORKDIR /app
|
|
ENV NODE_ENV=production
|
|
|
|
# Install dependencies
|
|
COPY package*.json ./
|
|
RUN npm ci --silent
|
|
|
|
# Copy source and build
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
FROM nginx:stable-alpine AS production
|
|
COPY --from=build /app/dist /usr/share/nginx/html
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
EXPOSE 80 443
|
|
CMD ["nginx", "-g", "daemon off;"]
|