Skip to content

Commit 61db77d

Browse files
committed
docker updates
1 parent f61bf09 commit 61db77d

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

script/env

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ export PURPLE='\033[0;35m'
1414

1515
export 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
1824
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"
1925
export DIR

spec/acceptance/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
FROM ruby:3.4.2-slim@sha256:342bfeb04d3660045ceba063197d22baafec6b163f019714ddf8fc83c59aabee
1+
FROM ruby:3.4.4-slim@sha256:93664239ae7e485147c2fa83397fdc24bf7b7f1e15c3ad9d48591828a50a50e7
2+
3+
WORKDIR /app
24

35
RUN 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
1111
RUN useradd -m nonroot
1212

0 commit comments

Comments
 (0)