build.Dockerfile 687 B

12345678910111213141516171819202122
  1. FROM ubuntu:20.04
  2. ENV DEBIAN_FRONTEND noninteractive
  3. RUN echo "Support Time Zone" \
  4. && set -x \
  5. && apt-get dist-upgrade \
  6. && apt-get update \
  7. && apt-get install -y tzdata
  8. # --- put file ---
  9. COPY ./component-interface /opt/cscec-8bur-vms/component-interface
  10. COPY ./supplement-python /opt/cscec-8bur-vms/supplement-python
  11. # --- clean ---
  12. RUN rm -rf /opt/cscec-8bur-vms/component-interface/*Dockerfile
  13. RUN rm -rf /opt/cscec-8bur-vms/component-interface/*spec
  14. RUN rm -rf /opt/cscec-8bur-vms/component-interface/*md
  15. RUN rm -rf /opt/cscec-8bur-vms/component-interface/*sh
  16. # --- run file ---
  17. WORKDIR /opt/cscec-8bur-vms/component-interface
  18. CMD ["/bin/bash", "-c", "./main"]