CIA/e-voting-system/docker/Dockerfile.frontend.dev
E-Voting Developer 8baabf528c feat: Implement Historique and Upcoming Votes pages with styling and data fetching
- Added HistoriquePage component to display user's voting history with detailed statistics and vote cards.
- Created UpcomingVotesPage component to show upcoming elections with a similar layout.
- Developed CSS styles for both pages to enhance visual appeal and responsiveness.
- Integrated API calls to fetch user's votes and upcoming elections.
- Added a rebuild script for Docker environment setup and data restoration.
- Created a Python script to populate the database with sample data for testing.
2025-11-06 05:12:03 +01:00

22 lines
388 B
Docker

FROM node:20-alpine
WORKDIR /app
# Copier package.json
COPY frontend/package*.json ./
# Installer dépendances
RUN npm install --legacy-peer-deps
# Copier code source
COPY frontend/ .
# Build argument for API URL
ARG REACT_APP_API_URL=http://backend:8000
ENV REACT_APP_API_URL=${REACT_APP_API_URL}
EXPOSE 3000
# Mode développement avec hot reload (npm start)
CMD ["npm", "start"]