123456789101112131415161718192021 |
- FROM python:3.9
- # Set the working directory
- WORKDIR /app
- # Install nodejs
- RUN apt update && \
- apt install -y nodejs npm && \
- apt-get clean && \
- rm -rf /var/lib/apt/lists/*
- # Install Docker CLI using the official Docker installation script
- RUN curl -fsSL https://get.docker.com -o get-docker.sh && \
- sh get-docker.sh
- # Copy the application code
- # Do this last to take advantage of the docker layer mechanism
- COPY . /app
- # Install Python dependencies
- RUN pip install .
|