Separate frontend and backend into individual containers: Frontend on 3601, Backend on 3660
This commit is contained in:
18
frontend/Dockerfile
Normal file
18
frontend/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user