Dockerfile 684 B

1234567891011121314151617181920212223242526272829303132
  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 --chown=tcms . /home/tcms
  10. WORKDIR /home/tcms
  11. RUN apt-get install -y locales
  12. RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
  13. ENV LANG en_US.utf8
  14. ENV DEBIAN_FRONTEND=noninteractive
  15. RUN ln -fs /usr/share/zoneinfo/UTC /etc/localtime
  16. RUN apt-get install -y tzdata
  17. RUN dpkg-reconfigure --frontend noninteractive tzdata
  18. RUN make depend
  19. RUN updatedb
  20. USER tcms
  21. RUN make install
  22. RUN make reset-dummy-data
  23. CMD /usr/bin/starman -p $port www/server.psgi