Docker_service/Dockerfile.proto

40 lines
734 B
Protocol Buffer
Raw Normal View History

2024-03-10 00:58:06 -03:00
FROM python:3.11-slim
2024-07-29 17:56:03 -04:00
<<<<<<< HEAD
2024-03-10 00:58:06 -03:00
RUN apt-get update && apt-get -y install git && apt-get clean
RUN useradd -m app
2024-07-29 17:56:03 -04:00
=======
>>>>>>> f0b116a (test)
2023-12-19 10:04:57 -03:00
2024-07-29 17:56:03 -04:00
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
2023-12-19 10:04:57 -03:00
2024-03-10 01:15:11 -03:00
RUN echo apscheduler >> /srv/requirements.txt
2024-03-10 00:58:06 -03:00
RUN pip install --no-cache-dir -r /srv/requirements.txt
2024-03-10 01:24:29 -03:00
COPY fetch.backend_proto.py /srv/fetch.py
2023-12-19 10:04:57 -03:00
WORKDIR /srv
2024-03-10 00:58:06 -03:00
RUN chown -R app:app /srv
2024-07-29 17:56:03 -04:00
<<<<<<< HEAD
USER app
=======
2024-03-10 00:58:06 -03:00
USER app
2024-07-29 17:56:03 -04:00
>>>>>>> f0b116a (test)
2024-03-10 00:58:06 -03:00
ENTRYPOINT ["python"]
2023-12-19 10:04:57 -03:00
2024-03-10 00:58:06 -03:00
CMD ["fetch.py"]