Skip to content

Commit a0bb7cc

Browse files
committed
move bundle required packages to bundle section of build
1 parent a28f570 commit a0bb7cc

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Dockerfile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ FROM ruby:3.3.8-alpine AS builder
33
RUN apk update && apk upgrade && apk add --update --no-cache \
44
build-base \
55
curl-dev \
6+
libffi-dev \
7+
yaml-dev \
8+
linux-headers \
69
postgresql-dev \
710
tzdata
811

@@ -24,24 +27,17 @@ RUN apk update && apk upgrade && apk add --update --no-cache \
2427
build-base \
2528
curl \
2629
imagemagick \
27-
libffi-dev \
28-
perl-yaml-libyaml \
29-
linux-headers \
3030
nodejs \
3131
npm \
3232
postgresql-client \
3333
tzdata \
3434
vim \
3535
&& rm -rf /var/cache/apk/*
3636

37-
RUN echo "NodeJS Version:" "$(node -v)"
38-
RUN echo "NPM Version:" "$(npm -v)"
39-
4037
WORKDIR $RAILS_ROOT
4138

4239
COPY . .
4340
RUN npm install --global npm
44-
RUN npm --version
4541
RUN npm install
4642
RUN npm run build && npm run build:css
4743

0 commit comments

Comments
 (0)