I'm getting issue when run passenger in docker container.
docker run --rm -p 3008:3008 imagesname
--> Downloading a Phusion Passenger agent binary for your platform
Phusion Passenger was not installed from an official release package, so you cannot download our
---------------------------------------
The Phusion Passenger agent binary could not be downloaded. Compiling it from source instead.
Checking for required software...
* Checking for C compiler...
Found: yes
Location: /usr/bin/cc
* Checking for C++ compiler...
Found: yes
Location: /usr/bin/c++
* Checking for Rake (associated with /home/tokyo-deploy/.rvm/gems/ruby-1.9.3-p551/wrappers/ruby)...
Found: yes
Location: /home/tokyo-deploy/.rvm/gems/ruby-1.9.3-p551/wrappers/rake
* Checking for Curl development headers with SSL support...
Found: yes
curl-config location: /usr/bin/curl-config
Header location: /usr/include/curl/curl.h
Version: libcurl 7.35.0
Usable: yes
Supports SSL: yes
* Checking for OpenSSL development headers...
Found: yes
Location: /usr/include/openssl/ssl.h
* Checking for Zlib development headers...
Found: yes
Location: /usr/include/zlib.h
Not compiling with optimizations.
Compiling Phusion Passenger agent...
.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Compilation finished!
--> Installing Nginx 1.8.1 engine
Phusion Passenger was not installed from an official release package, so you cannot download our precompiled Nginx engine.
---------------------------------------
No precompiled Nginx engine could be downloaded. Compiling it from source instead.
Checking for required software...
* Checking for C compiler...
Found: yes
Location: /usr/bin/cc
* Checking for C++ compiler...
Found: yes
Location: /usr/bin/c++
* Checking for GNU make...
Found: yes
Location: /usr/bin/make
* Checking for Rake (associated with /home/tokyo-deploy/.rvm/gems/ruby-1.9.3-p551/wrappers/ruby)...
Found: yes
Location: /home/tokyo-deploy/.rvm/gems/ruby-1.9.3-p551/wrappers/rake
* Checking for OpenSSL development headers...
Found: yes
Location: /usr/include/openssl/ssl.h
* Checking for Zlib development headers...
Found: yes
Location: /usr/include/zlib.h
* Checking for PCRE development headers...
Found: yes
Location: /usr/include/pcre.h
Installing...
Downloading Nginx 1.8.1 source code...
Extracting tarball...
Compiling support libraries (step 1 of 2)...
..............................................................................................................................................................................................................................................................
Compiling Nginx engine (step 2 of 2)...
....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Compilation finished!
--------------------------
[passenger_native_support.so] trying to compile for the current user (tokyo-deploy) and Ruby interpreter...
(set PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0 to disable)
Compilation successful. The logs are here:
/tmp/passenger_native_support-vjb3f4.log
[passenger_native_support.so] successfully loaded.
=============== Phusion Passenger Standalone web server started ===============
PID file: /srv/tokyo/calendar-frontend/current/tmp/pids/passenger.3008.pid
Log file: /srv/tokyo/calendar-frontend/current/log/passenger.3008.log
It take about 30 minutes to run this task but actually I setup it in docker base already. What i was setup in Gemfile that is: