Update Dockerfile.adminfull
parent
d4d18e0c21
commit
a8a4f0f30d
|
@ -5,6 +5,8 @@ RUN apk update && apk add git
|
||||||
# Copia el proyecto
|
# Copia el proyecto
|
||||||
# RUN git clone "https://for_testing:glpat-mQEdGjBW9M1nDbCCuvzi@gitlab.com/m3f_usm/admin_transporte/frontend" /frontend
|
# 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_frontend /frontend
|
||||||
|
RUN git clone https://72d861f982d2a76275d5b8178fe0633b19c43d33@dev.ilab.cl/TDTP/admin_transporte_backend /backend
|
||||||
|
RUN rm -rf /backend/project/dist
|
||||||
|
|
||||||
# Compilar
|
# Compilar
|
||||||
WORKDIR /frontend
|
WORKDIR /frontend
|
||||||
|
@ -12,17 +14,16 @@ RUN npm install && npm run build
|
||||||
|
|
||||||
# Contenedor backend
|
# Contenedor backend
|
||||||
FROM python:3.11-alpine
|
FROM python:3.11-alpine
|
||||||
RUN apk update && apk add git
|
|
||||||
|
|
||||||
# Copia el directorio
|
# Copia el directorio
|
||||||
WORKDIR /srv
|
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
|
# Actualiza el contenido
|
||||||
RUN rm -rf /srv/project/dist
|
COPY --from=frontend /backend/requirements.txt /srv
|
||||||
RUN pip install -r requirements.txt
|
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 /frontend/dist/ /srv/project/dist
|
||||||
|
COPY --from=frontend /backend/project/ /srv/project
|
||||||
|
|
||||||
ENTRYPOINT ["python3"]
|
ENTRYPOINT ["python3"]
|
||||||
CMD [ "/srv/project/manage.py", "runserver", "0.0.0.0:4000" ]
|
CMD [ "/srv/project/manage.py", "runserver", "0.0.0.0:4000" ]
|
||||||
|
|
Loading…
Reference in New Issue