nomad

HCL and Docker files for Nomad deployments
git clone https://git.in0rdr.ch/nomad.git
Log | Files | Refs | Pull requests

Dockerfile (637B)


      1 FROM alpine
      2 
      3 RUN apk update
      4 RUN apk add --no-cache apache2 apache2-utils shadow ffmpeg \
      5                        python3 py3-virtualenv py3-pip
      6 
      7 RUN usermod -u 1000 apache
      8 RUN groupmod -g 1000 apache
      9 
     10 # install python dependencies
     11 RUN pip install --break-system-packages --upgrade yt-dlp
     12 
     13 # prepare cgi directory with aload script
     14 WORKDIR /var/www/localhost/cgi-bin
     15 RUN rm *
     16 COPY cgi-bin/aload .
     17 
     18 # allow apache save to ampache music directory
     19 RUN mkdir -p /var/www/localhost/ampache
     20 RUN chown -R apache: /var/www/localhost
     21 VOLUME /var/www/localhost/ampache
     22 VOLUME /var/www/localhost/cgi-bin
     23 
     24 EXPOSE 80/tcp
     25 
     26 CMD ["httpd", "-DFOREGROUND"]