Docker_service/Dockerfile.proto

26 lines
510 B
Protocol Buffer
Raw Permalink Normal View History

2024-03-10 00:58:06 -03:00
FROM python:3.11-slim
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
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
2024-03-10 00:58:06 -03:00
USER app
ENTRYPOINT ["python"]
2023-12-19 10:04:57 -03:00
2024-03-10 00:58:06 -03:00
CMD ["fetch.py"]