40 lines
734 B
Protocol Buffer
40 lines
734 B
Protocol Buffer
FROM python:3.11-slim
|
|
<<<<<<< HEAD
|
|
|
|
RUN apt-get update && apt-get -y install git && apt-get clean
|
|
|
|
RUN useradd -m app
|
|
=======
|
|
>>>>>>> f0b116a (test)
|
|
|
|
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
|
|
|
|
COPY fetch.backend_proto.py /srv/fetch.py
|
|
|
|
WORKDIR /srv
|
|
|
|
RUN chown -R app:app /srv
|
|
<<<<<<< HEAD
|
|
USER app
|
|
|
|
=======
|
|
|
|
USER app
|
|
|
|
>>>>>>> f0b116a (test)
|
|
ENTRYPOINT ["python"]
|
|
|
|
CMD ["fetch.py"]
|