24 lines
523 B
Docker
24 lines
523 B
Docker
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
|
|
|
|
RUN pip3 install --no-cache-dir -r /srv/worker_downloads/requeriments.txt
|
|
|
|
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
|
|
|
|
ENTRYPOINT ["gunicorn"]
|
|
|
|
CMD ["--timeout", "600", "-b", "0.0.0.0:4000", "web:iapp"]
|