20 lines
369 B
Docker
20 lines
369 B
Docker
|
FROM python:3.11-slim
|
||
|
|
||
|
RUN apt-get update && apt-get -y install git && 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
|
||
|
|
||
|
RUN chown -R app:app /srv
|
||
|
|
||
|
USER app
|
||
|
|
||
|
WORKDIR /srv
|
||
|
|
||
|
ENTRYPOINT ["python3"]
|
||
|
|
||
|
CMD ["reportgen.py"]
|