Guest User

Untitled

a guest
Jan 16th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. git+https://username:password@gitlab.mycompany.com/mypackage.git@master#egg=mypackage
  2.  
  3. FROM python:3.7-alpine as base
  4. COPY . /app
  5. WORKDIR /app
  6.  
  7. FROM base AS dependencies
  8. COPY requirements.txt ./
  9. RUN apk add --no-cache make automake gcc g++ git &&
  10. pip install -r requirements.txt
  11.  
  12. FROM base
  13. WORKDIR /app
  14. COPY . /app
  15. COPY --from=dependencies /root/.cache /root/.cache
  16. COPY requirements.txt ./
  17. RUN pip install -r requirements.txt && rm -rf /root/.cache
  18. EXPOSE 8000
  19. CMD python main.py
  20.  
  21. Error [Errno 2] No such file or directory: 'git': 'git' while executing command git clone -q Cannot find command 'git' - do you have 'git' installed and in your PATH?
Add Comment
Please, Sign In to add comment