Gitlab Ci and environment variable

I have problem with passing linux variables to apache on docker.

In gitlab-ci-.yml a have set variable:

variables:
  APPLICATION_ENV: "prod"

When I execute command "export" in docker container I see this variable.

Problem occure with apache. When I open php script through apache on docker then not get this variable

<?php

system('export', $output);
var_dump($output);