Skip to content

Commit b713218

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

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

Dockerfile

Lines changed: 3 additions & 8 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+
libyaml-dev \
8+
linux-headers \
69
postgresql-dev \
710
tzdata
811

@@ -24,24 +27,16 @@ 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 \
32-
postgresql-client \
3332
tzdata \
3433
vim \
3534
&& rm -rf /var/cache/apk/*
3635

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

4238
COPY . .
4339
RUN npm install --global npm
44-
RUN npm --version
4540
RUN npm install
4641
RUN npm run build && npm run build:css
4742

0 commit comments

Comments
 (0)