Closed FabioLuporini closed 1 year ago
Ciao Andrea,
Stamani ho lavorato un po' sull'installazione e ho prodotto questo Dockerfile
Dockerfile
# Base image FROM python:3.9-slim-bullseye ENV DEBIAN_FRONTEND noninteractive # Basic stuff RUN apt-get update && \ apt-get install -y vim git # Install the `fantacalcio-voti-live` prerequisites # * The PostgreSQL dev files RUN apt-get install -y libpq-dev # * nodejs and protobufjs RUN apt install -y nodejs RUN apt install -y npm RUN npm cache clean --force RUN npm install -g protobufjs # Get `fantacalcio-voti-live` RUN git clone -v https://github.com/andregri/fantacalcio-voti-live.git # Install `fantacalcio-voti-live` RUN python3 -m venv /venv && \ /venv/bin/pip install -r fantacalcio-voti-live/requirements.txt && \ rm -rf ~/.cache/pip # Install more dev utils RUN /venv/bin/pip install ipython && \ rm -rf ~/.cache/pip ADD entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"]
Se ti interessa puoi aggiungerlo "as is" (nell' entrypoint.sh abilito solo il venv) e/o posso forkare e farti una PR.
entrypoint.sh
E' davvero rudimentary (alla fine lascia root user)
root
Nota che ho dovuto aggiungere:
RUN apt-get install -y libpq-dev
Senza, fallisce quando prova ad installare i python requirements
Ovviamente è una goccia nell'oceano, ma è il minimo in ritorno visto tutto quanto hai prodotto 😅
Grazie mille! 👏 Apri pure una PR
Ciao Andrea,
Stamani ho lavorato un po' sull'installazione e ho prodotto questo
Dockerfile
Se ti interessa puoi aggiungerlo "as is" (nell'
entrypoint.sh
abilito solo il venv) e/o posso forkare e farti una PR.E' davvero rudimentary (alla fine lascia
root
user)Nota che ho dovuto aggiungere:
Senza, fallisce quando prova ad installare i python requirements
Ovviamente è una goccia nell'oceano, ma è il minimo in ritorno visto tutto quanto hai prodotto 😅