24 lines
473 B
Docker
24 lines
473 B
Docker
FROM python:3.12-slim
|
|
|
|
RUN apt-get update && apt-get -y install git libpq-dev gcc && apt-get clean
|
|
|
|
RUN useradd -m app
|
|
|
|
RUN git clone https://72d861f982d2a76275d5b8178fe0633b19c43d33@dev.ilab.cl/TDTP/Reportes_gen /srv
|
|
|
|
RUN pip3 install --no-cache-dir -r /srv/reportgen/requirements.txt
|
|
|
|
WORKDIR /srv
|
|
|
|
ADD "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache
|
|
|
|
RUN git pull
|
|
|
|
RUN chown -R app:app /srv
|
|
|
|
USER app
|
|
|
|
ENTRYPOINT ["python3"]
|
|
|
|
CMD ["reportgen.py"]
|