You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

28 lines
425 B

  1. FROM python:3.9-slim
  2. RUN useradd --create-home --shell /bin/bash kosmorro
  3. WORKDIR /home/kosmorro
  4. ENV PATH="/home/kosmorro:${PATH}"
  5. RUN python -m pip install --upgrade pip
  6. RUN pip install pipenv
  7. COPY Pipfile.lock .
  8. RUN pipenv sync && pipenv run pip freeze > requirements.txt
  9. RUN pip uninstall pipenv -y
  10. RUN pip install -r requirements.txt
  11. COPY kosmorrolib/ kosmorrolib/
  12. COPY kosmorro .
  13. USER kosmorro
  14. CMD ["bash"]