Skip to content

Commit 93918f2

Browse files
compwronFireLemons
authored andcommitted
getting docker building better
1 parent fc6373b commit 93918f2

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,19 @@ RUN apk update && apk upgrade && apk add --update --no-cache \
2424
imagemagick \
2525
postgresql-client \
2626
tzdata \
27-
vim && rm -rf /var/cache/apk/*
28-
# The ruby alpine image's apk doesn't have the current version of node
29-
RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/main/ nodejs npm
27+
vim \
28+
nodejs \
29+
npm \
30+
&& rm -rf /var/cache/apk/*
31+
32+
RUN echo "NodeJS Version:" "$(node -v)"
33+
RUN echo "NPM Version:" "$(npm -v)"
3034

3135
WORKDIR $RAILS_ROOT
3236

3337
COPY . .
3438
RUN npm install --global npm
39+
RUN npm --version
3540
RUN npm install
3641
RUN npm run build && npm run build:css
3742

Gemfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,10 @@ GEM
233233
faraday-retry (1.0.3)
234234
faraday_middleware (1.2.1)
235235
faraday (~> 1.0)
236-
ffi (1.17.1)
237-
ffi (1.17.1-arm64-darwin)
238-
ffi (1.17.1-x86_64-darwin)
239-
ffi (1.17.1-x86_64-linux-gnu)
236+
ffi (1.17.2)
237+
ffi (1.17.2-arm64-darwin)
238+
ffi (1.17.2-x86_64-darwin)
239+
ffi (1.17.2-x86_64-linux-gnu)
240240
filterrific (5.2.7)
241241
flipper (1.3.4)
242242
concurrent-ruby (< 2)
@@ -319,7 +319,7 @@ GEM
319319
marcel (1.0.4)
320320
matrix (0.4.2)
321321
method_source (1.1.0)
322-
mini_magick (5.1.2)
322+
mini_magick (5.2.0)
323323
benchmark
324324
logger
325325
mini_mime (1.1.5)

0 commit comments

Comments
 (0)