Dockerfile 727 B

12345678910111213141516171819202122232425262728293031323334
  1. FROM ubuntu:latest
  2. ARG port=5000
  3. LABEL description="tCMS: a Perl CMS by Troglodyne LLC"
  4. EXPOSE $port/tcp
  5. USER root
  6. RUN useradd tcms
  7. RUN apt-get update
  8. RUN apt-get install -y make apt-utils mlocate
  9. ADD . /home/tcms
  10. RUN mkdir /home/tcms/.tcms
  11. RUN chown -R tcms /home/tcms
  12. WORKDIR /home/tcms
  13. RUN apt-get install -y locales
  14. RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
  15. ENV LANG en_US.utf8
  16. ENV DEBIAN_FRONTEND=noninteractive
  17. RUN ln -fs /usr/share/zoneinfo/UTC /etc/localtime
  18. RUN apt-get install -y tzdata
  19. RUN dpkg-reconfigure --frontend noninteractive tzdata
  20. RUN make depend
  21. RUN updatedb
  22. USER tcms
  23. RUN make install
  24. RUN make reset-dummy-data
  25. CMD /usr/bin/starman -p $port www/server.psgi