Skip to content

Commit ab3ad02

Browse files
committed
Clean yarn cache in prod image build
Actually this was suggested by some Dockerfile lint display integrated with neovim.
1 parent 11168f3 commit ab3ad02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docker/Dockerfile.prod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN bundle install
2626

2727
# Install node modules
2828
COPY --chown=$APP_USER:$APP_USER rails/package.json rails/yarn.lock ./
29-
RUN yarn install --production
29+
RUN yarn install --production && yarn cache clean
3030

3131
# Install the rails app, including some static files placed under rails/public,
3232
# excluding what's listed in .dockerignore

0 commit comments

Comments
 (0)