Dockerfile 577 B

123456789101112131415161718192021222324
  1. FROM python:3.9
  2. # Set the working directory
  3. WORKDIR /app
  4. # Install nodejs
  5. RUN apt update && \
  6. apt install -y nodejs npm && \
  7. apt-get clean && \
  8. rm -rf /var/lib/apt/lists/*
  9. # Install Docker CLI using the official Docker installation script
  10. RUN curl -fsSL https://get.docker.com -o get-docker.sh && \
  11. sh get-docker.sh
  12. # Copy the application code
  13. # Do this last to take advantage of the docker layer mechanism
  14. COPY . /app
  15. # Install Python dependencies
  16. RUN pip install -e '.'
  17. # Install react dependencies ahead of time
  18. RUN cd sweagent/frontend && npm install