Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2023
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. FROM python:3.10-slim as compiler
  2. ENV PYTHONUNBUFFERED 1
  3.  
  4. WORKDIR /app/
  5.  
  6. RUN python -m venv /opt/venv
  7. # Enable venv
  8. ENV PATH="/opt/venv/bin:$PATH"
  9.  
  10. COPY ./DAMASK/python/damask/requirements.txt /app/requirements.txt
  11. RUN pip install -Ur requirements.txt
  12. RUN pip install mypy
  13.  
  14. FROM python:3.9-slim as runner
  15. WORKDIR /app/
  16. COPY --from=compiler /opt/venv /opt/venv
  17.  
  18. # Enable venv
  19. ENV PATH="/opt/venv/bin:$PATH"
  20. COPY . /app/
  21. ENTRYPOINT ["mypy"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement