Ver Fonte

adjust centos docker files

George S. Baugh há 5 anos atrás
pai
commit
e413ae5c9c
2 ficheiros alterados com 4 adições e 4 exclusões
  1. 3 3
      Dockerfile.centos
  2. 1 1
      Makefile

+ 3 - 3
Dockerfile.centos

@@ -1,4 +1,4 @@
-FROM ubuntu:latest
+FROM ubuntu:21.04
 
 USER root
 RUN useradd tcms
@@ -21,13 +21,13 @@ RUN ln -fs /usr/share/zoneinfo/UTC /etc/localtime
 RUN apt-get install -y tzdata
 RUN dpkg-reconfigure --frontend noninteractive tzdata
 
-RUN make depend
+RUN make prereq-debian
 RUN updatedb
 
 ARG port=5000
 LABEL description="tCMS: a Perl CMS by Troglodyne LLC"
 
-EXPOSE $port/tcp
+ADD ./Makefile /home/tcms/Makefile
 
 RUN chown -R tcms /home/tcms
 

+ 1 - 1
Makefile

@@ -26,7 +26,7 @@ prereq-debian: prereq-debs prereq-perl prereq-frontend
 
 .PHONY: prereq-debs
 prereq-debs:
-	apt-get install -y sqlite3 libsqlite3-dev libdbd-sqlite3-perl cpanminus starman libxml2 wget                         \
+	apt-get install -y sqlite3 libsqlite3-dev libdbd-sqlite3-perl cpanminus starman libxml2 curl                         \
 	    libtext-xslate-perl libplack-perl libconfig-tiny-perl libdatetime-format-http-perl libjson-maybexs-perl          \
 	    libuuid-tiny-perl libcapture-tiny-perl libconfig-simple-perl libdbi-perl libfile-slurper-perl libfile-touch-perl \
 	    libfile-copy-recursive-perl libxml-rss-perl libmodule-install-perl                                               \