You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
566 B

5 months ago
FROM nginx:1.27.0-alpine-perl
RUN apk update
RUN apk add bash curl perl-cgi spawn-fcgi fcgiwrap openrc perl-app-cpanminus
5 months ago
EXPOSE 80
RUN mkdir -p /var/log/nginx /var/log/fcgiwrap
5 months ago
ADD ./nginx.conf /etc/nginx/nginx.conf
ADD ./survey.conf /etc/nginx/conf.d/survey.conf
ADD ./fcgiwrap /etc/init.d/fcgiwrap
ADD ./entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /etc/init.d/fcgiwrap
5 months ago
RUN rm /etc/nginx/conf.d/default.conf
RUN chmod +x /usr/local/bin/entrypoint.sh
ENV PERL5LIB=/usr/share/nginx/html/cgi-bin
EXPOSE 80
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]