Docker_service/Dockerfile.downloads

24 lines
523 B
Docker
Raw Normal View History

2024-04-02 00:16:46 -03:00
FROM python:3.11-slim
RUN apt-get update && apt-get -y install git libpq-dev gcc && apt-get clean
RUN useradd -m app
RUN git clone https://72d861f982d2a76275d5b8178fe0633b19c43d33@dev.ilab.cl/TDTP/worker_downloads /srv
2024-04-02 00:55:29 -03:00
RUN pip3 install --no-cache-dir -r /srv/worker_downloads/requeriments.txt
2024-04-02 00:16:46 -03:00
WORKDIR /srv
ADD "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache
RUN git pull
RUN chown -R app:app /srv
USER app
2024-04-02 01:55:52 -03:00
ENTRYPOINT ["gunicorn"]
2024-04-02 00:16:46 -03:00
2024-04-02 01:55:52 -03:00
CMD ["--timeout", "600", "-b", "0.0.0.0:4000", "web:iapp"]