| 123456789101112131415161718192021222324 |
- # yup, python 3.11!
- FROM python:3.11-alpine
- # install nginx y otras cosas
- RUN apk add bash netcat-openbsd curl vim jq rsync gcc musl-dev libvirt-dev openssh openssh-client sshpass
- # Crear directorio SSH
- RUN mkdir -p /root/.ssh && chmod 700 /root/.ssh
- COPY requirements.txt requirements.txt
- RUN mkdir -p /usr/local/lib/virtmanager
- RUN pip install --user --upgrade pip && pip install --user --no-cache-dir -r requirements.txt
- COPY ./src /usr/local/lib/virtmanager
- ENV PATH="/root/.local/bin:$PATH"
- RUN chgrp -R 0 /usr/local/lib/virtmanager && \
- chmod -R g=u /usr/local/lib/virtmanager
- # change our working directory to the django projcet roo
- WORKDIR /usr/local/lib/virtmanager
- ENTRYPOINT ["/usr/local/lib/virtmanager/entrypoint.sh"]
|