Dockerfile 1.3 KB

1234567891011121314151617
  1. FROM cherishpf/python3-java8:1.0
  2. WORKDIR ./python_physical_world_v3
  3. ADD . .
  4. RUN echo > /etc/apt/sources.list
  5. RUN apt-key adv –recv-keys –keyserver keyserver.ubuntu.com 40976EAF437D05B5 -no-tty
  6. RUN apt-key adv –recv-keys –keyserver keyserver.ubuntu.com 3B4FE6ACC0B21F32 -no-tty
  7. RUN bash -c 'echo -e "deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse \ndeb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse \ndeb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse \ndeb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse \ndeb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse \ndeb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse \ndeb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse \ndeb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse" > /etc/apt/sources.list'
  8. RUN apt-get update && apt-get install -y --no-install-recommends \
  9. build-essential && \
  10. pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/
  11. WORKDIR physical_world_exporter
  12. CMD ["python", "-u","./start-linux.py"]