Skip to content

Commit e1e3b97

Browse files
authored
CDPTKAN-988 Fix issue with node versions (#2953)
1 parent f121f02 commit e1e3b97

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

docker/web/Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
FROM ruby:3.3.11-alpine
22

3+
# Fixes the Node version issue by copying Node 16 directly from the official image
4+
COPY --from=node:16-alpine /usr/local/bin/node /usr/local/bin/node
5+
COPY --from=node:16-alpine /usr/local/lib/node_modules /usr/local/lib/node_modules
6+
COPY --from=node:16-alpine /usr/local/include/node /usr/local/include/node
7+
RUN ln -s /usr/local/lib/node_modules/npm/bin/npm-merge-driver /usr/local/bin/npm-merge-driver || true
8+
39
ARG UID=1001
410

511
RUN apk update
612
RUN apk add git yarn build-base postgresql-contrib postgresql-dev \
713
bash libcurl curl yaml-dev
814

9-
RUN apk add --no-cache --repository https://dl-cdn.alpinelinux.org/alpine/v3.16/main/ nodejs
15+
#RUN apk add --no-cache --repository https://dl-cdn.alpinelinux.org/alpine/v3.16/main/ nodejs
1016
RUN apk add clamav-daemon
1117
RUN apk add --no-cache gcompat
1218

0 commit comments

Comments
 (0)