- Updated .env.example and .env files for backend and frontend with placeholder values. - Enhanced .gitignore to include additional files and directories. - Modified docker-compose.yml to change image names and improve service health checks. - Updated README.md and SETUP_THE_PROJECT.md for clearer setup instructions. - Added database initialization scripts and SQL files for structured database setup. - Updated frontend Dockerfile to use Node.js 22 and adjusted package.json scripts. - Improved error handling and logging in start scripts for better debugging. - Added reCAPTCHA support in the signup page with conditional loading based on environment variables.
20 lines
293 B
Docker
20 lines
293 B
Docker
FROM node:22-alpine AS build
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json package-lock.json ./
|
|
|
|
RUN npm ci
|
|
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
FROM node:22-alpine AS production
|
|
|
|
WORKDIR /app
|
|
|
|
RUN npm install -g serve
|
|
|
|
COPY --from=build /app/build /app/build
|
|
EXPOSE 5000
|
|
CMD ["serve", "-s", "build", "-l", "5000"] |