diff --git a/Dockerfile.adminfull b/Dockerfile.adminfull index 94364e6..445ca0b 100644 --- a/Dockerfile.adminfull +++ b/Dockerfile.adminfull @@ -5,6 +5,8 @@ RUN apk update && apk add git # Copia el proyecto # RUN git clone "https://for_testing:glpat-mQEdGjBW9M1nDbCCuvzi@gitlab.com/m3f_usm/admin_transporte/frontend" /frontend RUN git clone https://72d861f982d2a76275d5b8178fe0633b19c43d33@dev.ilab.cl/TDTP/admin_transporte_frontend /frontend +RUN git clone https://72d861f982d2a76275d5b8178fe0633b19c43d33@dev.ilab.cl/TDTP/admin_transporte_backend /backend +RUN rm -rf /backend/project/dist # Compilar WORKDIR /frontend @@ -12,17 +14,16 @@ RUN npm install && npm run build # Contenedor backend FROM python:3.11-alpine -RUN apk update && apk add git - # Copia el directorio WORKDIR /srv -# RUN git clone "https://for_testing:glpat-mQEdGjBW9M1nDbCCuvzi@gitlab.com/m3f_usm/admin_transporte/backend" /srv -RUN git clone https://72d861f982d2a76275d5b8178fe0633b19c43d33@dev.ilab.cl/TDTP/admin_transporte_backend /srv -RUN rm -rf /srv/project/dist + +# Actualiza el contenido +COPY --from=frontend /backend/requirements.txt /srv RUN pip install -r requirements.txt -# Actualiza el contenido de frontend +COPY --from=frontend /backend/readme.md /srv COPY --from=frontend /frontend/dist/ /srv/project/dist +COPY --from=frontend /backend/project/ /srv/project ENTRYPOINT ["python3"] CMD [ "/srv/project/manage.py", "runserver", "0.0.0.0:4000" ]