Skip to content

Commit d66a927

Browse files
author
Vidas P
committed
Set production environment in Dockerfile
1 parent 346ea72 commit d66a927

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ WORKDIR /app
77

88
COPY ./ /app/
99

10+
ENV RAILS_ENV=production
11+
1012
# Get rid of annoying "fatal: Not a git repository (or any of the parent directories): .git" messages
1113
RUN umask 002 && git init && \
1214
LC_ALL=en_US.UTF-8 RAILS_ENV=production SECRET_KEY_BASE=secret bundle install --without "test development" --path vendor/bundle -j 4 --no-local --no-cache --force && \

0 commit comments

Comments
 (0)