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.

29 lines
622B

  1. FROM ubuntu:17.10
  2. MAINTAINER Ray Burgemeestre
  3. RUN apt-get update && \
  4. apt-get install -y software-properties-common && \
  5. add-apt-repository ppa:leaningtech-dev/cheerp-ppa && \
  6. apt-get update
  7. RUN apt-get -y install cheerp-core
  8. RUN apt-get -y install python3-pip
  9. RUN mkdir /mnt/work
  10. COPY Pipfile /mnt/work/
  11. COPY Pipfile.lock /mnt/work/
  12. WORKDIR /mnt/work
  13. RUN LC_ALL=C.UTF-8 LANG=C.UTF-8 python3 -m pip install pipenv && \
  14. LC_ALL=C.UTF-8 LANG=C.UTF-8 python3 -m pipenv install
  15. EXPOSE 5000
  16. COPY api.py /mnt/work/
  17. RUN mkdir /data
  18. CMD LC_ALL=C.UTF-8 LANG=C.UTF-8 python3 -m pipenv run python api.py