File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,12 @@ export PURPLE='\033[0;35m'
1414
1515export RUBY_ENV
1616
17+ # Check for --production flag in arguments
18+ if [[ " $* " =~ " --production " ]]; then
19+ export RUBY_ENV=production
20+ export BUNDLE_WITHOUT=" development"
21+ fi
22+
1723# set the working directory to the root of the project
1824DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && cd .. && pwd ) "
1925export DIR
Original file line number Diff line number Diff line change 1- FROM ruby:3.4.2-slim@sha256:342bfeb04d3660045ceba063197d22baafec6b163f019714ddf8fc83c59aabee
1+ FROM ruby:3.4.4-slim@sha256:93664239ae7e485147c2fa83397fdc24bf7b7f1e15c3ad9d48591828a50a50e7
2+
3+ WORKDIR /app
24
35RUN apt-get update && \
46 apt-get install -y --no-install-recommends build-essential libyaml-dev && \
57 apt-get clean && \
68 rm -rf /var/lib/apt/lists/*
79
8- WORKDIR /app
9-
1010# create nonroot user
1111RUN useradd -m nonroot
1212
You can’t perform that action at this time.
0 commit comments