in reply to Google App Engine and CGI

CGI doesn't work like that. You'll have to add a CGI-capable web-server (Apache; ACME Labs mini_httpd/thttpd; anything else?) to your container image and set it up for your web app to work. Mojolicious and other Perl web frameworks, on the other hand, have an embedded web server in them.

Replies are listed 'Best First'.
Re^2: Google App Engine and CGI
by *alexandre* (Scribe) on Jul 31, 2019 at 20:44 UTC

      If you have Apache, all you need is to find out how to configure a CGI to run under Apache. Like maybe using mod_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