Separate frontend and backend into individual containers: Frontend on 3601, Backend on 3660

This commit is contained in:
Hamza-Ayed
2026-03-30 17:50:14 +03:00
parent ba8906ddef
commit c6cf956727
3 changed files with 34 additions and 13 deletions

18
frontend/Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
FROM node:20-alpine
WORKDIR /usr/src/app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy source code
COPY . .
# Expose the internal port used by serv.js
EXPOSE 5001
# Start the frontend using the serv.js script
CMD ["npm", "run", "start"]