FROM ubuntu RUN apt-get update && \ apt-get install -y sudo && \ apt-get clean RUN apt-get install -y wget unzip && apt-get update && apt-get install -y python3 python3-pip python3.12-venv ARG DRIVE_CODE RUN useradd -ms /bin/bash appuser RUN usermod -aG sudo appuser RUN echo "appuser ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers USER appuser WORKDIR /app RUN wget -O code.zip "https://drive.google.com/uc?export=download&id=$DRIVE_CODE" RUN sudo chmod -R 777 /app RUN ls RUN file code.zip RUN unzip code.zip RUN python3 -m venv venv RUN /bin/bash -c "source venv/bin/activate && pip3 install -r requirements.txt" CMD [ "venv/bin/python","server.py"]