# Pull base image. FROM php:7-apache ENV LC_ALL=C.UTF-8 LANG=C.UTF-8 #####################################################################################root## ### install base libraries and dependencies for faircoin daemon ########################### RUN apt-get update -q && \ apt-get install -qy \ wget \ curl #####################################################################################root## ### install nano commandline editor [optional] ( to edit faircoin.conf later if necessary ) RUN apt-get install -qy nano \ net-tools #####################################################################################root## ### system cleanup ######################################################################## RUN rm -rf /var/lib/apt/lists/* && \ apt-get autoremove -y && \ apt-get clean #####################################################################################root## ### install php-mysql module ############################################################## RUN docker-php-ext-install mysqli #####################################################################################root## ### create and run user account to image ################################################## ARG RUNNER_GID ARG RUNNER_UID RUN groupadd -g $RUNNER_GID user RUN useradd --create-home --shell /bin/bash user --uid $RUNNER_UID --gid $RUNNER_GID COPY ./start_server.sh /opt/start_server.sh RUN chmod +x /opt/start_server.sh