FROM dcentrica/metaport-server:latest ARG ENVIRONMENT_TYPE=live ARG DATABASE_SERVER ARG DB_ROOT_PASSWORD ARG DATABASE_NAME ARG DATABASE_PORT=3306 ARG DATABASE_USERNAME ARG DATABASE_PASSWORD ARG DEFAULT_ADMIN_USERNAME ARG DEFAULT_ADMIN_PASSWORD ARG MP_PRIMARY_DOMAIN ARG MP_MAIL_DSN ARG MP_NOTIFICATION_EMAIL_FROM ARG MFA_SECRET_KEY ARG MP_DOWNLOAD_DIR=/tmp ARG MP_MASTER_KEY_PATH ARG MP_DEPENDENCY_MANAGER=Classic ARG MP_COMPONENT_MANAGER ENV MP_APP_ICON_ENABLE=0 ENV SS_ENVIRONMENT_TYPE=$ENVIRONMENT_TYPE ENV SS_DATABASE_SERVER=$DATABASE_SERVER ENV SS_DATABASE_NAME=$DATABASE_NAME ENV SS_DATABASE_PORT=$DATABASE_PORT ENV SS_DATABASE_USERNAME=$DATABASE_USERNAME ENV SS_DATABASE_PASSWORD=$DATABASE_PASSWORD ENV SS_DEFAULT_ADMIN_USERNAME=$DEFAULT_ADMIN_USERNAME ENV SS_DEFAULT_ADMIN_PASSWORD=$DEFAULT_ADMIN_PASSWORD ENV MP_PRIMARY_DOMAIN=$MP_PRIMARY_DOMAIN ENV MP_MAIL_DSN=$MP_MAIL_DSN ENV MP_NOTIFICATION_EMAIL_FROM=$MP_NOTIFICATION_EMAIL_FROM ENV SS_MFA_SECRET_KEY=$MFA_SECRET_KEY ENV MP_DOWNLOAD_DIR=$MP_DOWNLOAD_DIR ENV MP_MASTER_KEY_PATH=$MP_MASTER_KEY_PATH ENV MP_DOCROOT="/var/www/html/metaport" ENV MP_DEPMANAGER=$MP_DEPENDENCY_MANAGER ENV MP_COMPONENT_MANAGER=$MP_COMPONENT_MANAGER RUN apk update && apk upgrade && \ apk add --update --no-cache \ nginx \ supervisor RUN chown www-data $MP_DOCROOT/bin/setup.sh && \ chmod +x $MP_DOCROOT/bin/setup.sh COPY .docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf COPY .docker/nginx.conf /etc/nginx/nginx.conf COPY .docker/metaport.conf /etc/nginx/conf.d/metaport.conf EXPOSE 443/tcp # Override base image's ENTRYPOINT to accommodate both php-fpm and nginx services. ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]