FROM node:18-alpine

WORKDIR /app

# Copy package files from portal-backend directory
COPY portal-backend/package*.json ./
RUN npm install

# Copy the rest of the backend files
COPY portal-backend/ .

EXPOSE 3001
CMD ["npm", "start"] 