Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM python:3.10-slim as compiler
- ENV PYTHONUNBUFFERED 1
- WORKDIR /app/
- RUN python -m venv /opt/venv
- # Enable venv
- ENV PATH="/opt/venv/bin:$PATH"
- COPY ./DAMASK/python/damask/requirements.txt /app/requirements.txt
- RUN pip install -Ur requirements.txt
- RUN pip install mypy
- FROM python:3.9-slim as runner
- WORKDIR /app/
- COPY --from=compiler /opt/venv /opt/venv
- # Enable venv
- ENV PATH="/opt/venv/bin:$PATH"
- COPY . /app/
- ENTRYPOINT ["mypy"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement