# Base image FROM python:3.9-slim-buster WORKDIR /app COPY . . python -m pip install --upgrade pip RUN --mount=target=requirements.txt,source=requirements.txt pip install --no-cache-dir -r requirements.txt CMD ["python", "app.py"] # Copy package.json and install npm packages COPY package.json . RUN apt-get update && apt-get install -y npm && npm install python -m pip install --upgrade pip # Copy the rest of the files COPY . . # Expose the port EXPOSE 3003 # Start the application CMD ["npm", "start"]