Docker_service/Dockerfile.cms

16 lines
361 B
Docker

FROM python:3.11-slim
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/cms_backend /srv
WORKDIR /srv
RUN pip install --no-cache-dir -r myproject/requirements.txt
ENTRYPOINT ["python3"]
CMD ["myproject/manage.py", "runserver", "0.0.0.0:4000"]