Set RAILS_ENV for base image.
authorGuo Xiang Tan <tgx_world@hotmail.com>
Fri, 3 May 2019 01:44:09 +0000 (09:44 +0800)
committerGuo Xiang Tan <tgx_world@hotmail.com>
Fri, 3 May 2019 01:44:33 +0000 (09:44 +0800)
We can't boot the Rails app if it tries to require development
dependencies.

image/base/Dockerfile

index 9cb69245bc9794f1106a432d1de8e17d3bcaa431..af1b3132135686e95215ea5c89f05e1e98370f1c 100644 (file)
@@ -4,6 +4,7 @@ FROM ubuntu:16.04
 
 ENV PG_MAJOR 10
 ENV RUBY_ALLOCATOR /usr/lib/libjemalloc.so.1
+ENV RAILS_ENV production
 
 #LABEL maintainer="Sam Saffron \"https://twitter.com/samsaffron\""