Files
portfolio/Dockerfile
T
sylvaintr fe441c4bea Add GridWrapper and RetourEnHaut components
- 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.
2026-03-09 21:24:37 +01:00

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;"]