in reply to Re^3: Google App Engine and CGI
in thread Google App Engine and CGI

Hi guys here is the Docerfile I created but I got an error when deploying
FROM ubuntu:16.04 ## Install Base Packages RUN apt-get update && apt-get -y install \ apache2 \ make \ curl \ git \ gcc RUN a2enmod rewrite ## Install Perl RUN apt-get update && apt-get -y install \ libapache2-mod-perl2 \ perl RUN a2enmod perl ## Install PHP RUN apt-get update && apt-get -y install \ php7.0 php7.0-cli php7.0-common php7.0-fpm php7.0-json \ php7.0-mbstring php7.0-mcrypt php7.0-mysql php7.0-opcache php7.0-r +eadline \ libapache2-mod-php7.0 RUN a2enmod rewrite EXPOSE 80 RUN mkdir -p /var/www/recordz COPY recordz1 /var/www COPY httpd.conf /etc/apache2/sites-available/ RUN a2ensite recordz CMD /usr/sbin/apache2ctl -D FOREGROUND
my current work directory is C:\Users\41786\Documents> and I type docker build -t recordz . but I got Step 11/13 : COPY httpd.conf /etc/apache2/sites-available/ COPY failed: stat /var/lib/docker/tmp/docker-builder215152285/httpd.conf: no such file or directory

Replies are listed 'Best First'.
Re^5: Google App Engine and CGI
by Corion (Patriarch) on Aug 04, 2019 at 15:55 UTC

    I'm really not sure how this relates in any way to Perl.

    Again, note that a Mojolicious program does not need any web server, as you can launch it via

    perl -w records1 daemon -l http://example.com:80/

    Most likely, you can bundle your Mojolicious application in a Dockerfile by following the Instructions on the Mojolicious wiki.

    The Docker error tells you that a file, httpd.conf cannot be found for copying into the Docker image. Usually that means you are in the wrong directory. But this is Perlmonks, not Dockermonks.