33 lines
1.3 KiB
Docker
33 lines
1.3 KiB
Docker
FROM ubuntu
|
|
RUN apt update && apt upgrade -y && apt install -y php php-mbstring php-curl php-xml pwgen dotnet-runtime-8.0 openssh-server
|
|
|
|
RUN rm /var/www/html/index.html && a2enmod ssl && a2enmod rewrite && service apache2 restart
|
|
|
|
RUN mkdir /usr/lib/mocha && mkdir /etc/mocha && mkdir /var/mocha && bash -c 'echo docker > /etc/mocha/suvtype'
|
|
|
|
# install the root file system overlay
|
|
COPY mocha-suv/docker/fs /
|
|
COPY mocha-common/mocha-common/data/uploads /var/mocha/uploads
|
|
|
|
# COPY mocha-php/mocha-php/src/mocha-php /usr/local/apache2/htdocs/
|
|
COPY mocha-php/mocha-php/src/mocha-php /var/www/html
|
|
COPY mocha-php/phast/lib/phast/server /var/www/html/lib/phast
|
|
COPY mocha-php/phast/lib/phast/client/scripts /var/www/html/scripts/phast
|
|
|
|
COPY mocha-suv/common/certs /etc/ssl/certs
|
|
|
|
COPY mocha-suv/common/libexec/* /usr/lib/mocha/
|
|
COPY mocha-suv/common/libexec/mocha /usr/bin
|
|
RUN chmod a+x /usr/bin/mocha /usr/lib/mocha/mocha-*
|
|
|
|
# COPY mocha-suv/docker/httpd.conf /usr/local/apache2/conf/httpd.conf
|
|
# COPY mocha-suv/docker/ports.conf /usr/local/apache2/conf/ports.conf
|
|
COPY mocha-suv/docker/ports.conf /etc/apache2/ports.conf
|
|
|
|
# COPY mocha-suv/docker/site.conf /usr/local/apache2/conf/site.conf
|
|
COPY mocha-suv/docker/site.conf /etc/apache2/sites-available/000-default.conf
|
|
|
|
EXPOSE 443
|
|
|
|
CMD [ "mochactl", "start" ]
|