26 lines
510 B
Protocol Buffer
26 lines
510 B
Protocol Buffer
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/ilab_proto_backend /srv
|
|
|
|
RUN echo apscheduler >> /srv/requirements.txt
|
|
|
|
RUN pip install --no-cache-dir -r /srv/requirements.txt
|
|
|
|
RUN echo apscheduler >> /srv/requirements.txt
|
|
|
|
RUN pip install --no-cache-dir -r /srv/requirements.txt
|
|
|
|
WORKDIR /srv
|
|
|
|
RUN chown -R app:app /srv
|
|
|
|
USER app
|
|
|
|
ENTRYPOINT ["python"]
|
|
|
|
CMD ["fetch.py"]
|