File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -61,11 +61,18 @@ ENV RAILS_ENV=production \
6161 SECRET_KEY_BASE=NOT_USED_NON_BLANK
6262# compiling assets requires any value for ENV of SECRET_KEY_BASE
6363
64- RUN yarn res:build
64+ # These files hardly ever change
6565RUN bin/rails react_on_rails:locale
66- RUN bin/rails assets:precompile
6766
67+ # These files change together, /app/lib/bs are temp build files for rescript,
68+ # and /app/client/app are the client assets that are bundled, so not needed once built
69+ # Helps to have smaller images b/c of smaller Docker Layer Caches and smaller final images
70+ RUN yarn res:build && bin/rails assets:precompile && rm -rf /app/lib/bs /app/client/app
6871
72+ # This is like the shell initialization that will take the CMD as args
73+ # For Kubernetes and ControlPlane, this is the command on the workload.
6974ENTRYPOINT ["./.controlplane/entrypoint.sh" ]
7075
76+ # Default args to pass to the entry point that can be overridden
77+ # For Kubernetes and ControlPlane, these are the "workload args"
7178CMD ["./bin/rails" , "server" ]
You can’t perform that action at this time.
0 commit comments