Dockerfile 743 B

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