11# syntax=docker/dockerfile:experimental
22
33# BUILD WEBUI
4- FROM node:18
4+ FROM node:20
55COPY packages /opt/core/packages
66WORKDIR /opt/core/packages
77
@@ -14,8 +14,8 @@ RUN yarn install && yarn build
1414# RUN yarn workspaces focus --production @sofie-automation/job-worker @sofie-automation/corelib
1515
1616# BUILD IMAGE
17- FROM meteor/ node:14.21.4
18- RUN curl "https://install.meteor.com/?release=2.13.3 " | sh
17+ FROM node:20
18+ RUN curl "https://install.meteor.com/?release=3.0.4 " | sh
1919
2020# Temporary change the NODE_ENV env variable, so that all libraries are installed:
2121ENV NODE_ENV_TMP $NODE_ENV
@@ -37,7 +37,7 @@ RUN rm -R /opt/core/packages/webui
3737
3838# Force meteor to setup the runtime
3939RUN meteor --version --allow-superuser
40- RUN meteor corepack enable
40+ RUN corepack enable
4141RUN yarn install
4242
4343# Restore the NODE_ENV variable:
@@ -50,29 +50,9 @@ RUN npm install
5050RUN mv /opt/bundle/programs/web.browser/assets /opt/bundle/programs/web.browser/app/assets || true
5151
5252# DEPLOY IMAGE
53- FROM alpine:3.19
54-
55- ENV NODE_VERSION=14.21.4
56- ENV NODE_URL="https://static.meteor.com/dev-bundle-node-os/unofficial-builds/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.gz"
57- ENV DIR_NODE=/usr/local
58-
59- RUN apk add --no-cache \
60- libstdc++ \
61- && apk add --no-cache --virtual .build-deps-full \
62- binutils-gold \
63- curl \
64- gnupg \
65- xz
66-
67- RUN echo $NODE_URL \
68- && curl -sSL "$NODE_URL" | tar -xz -C /usr/local/ && mv $DIR_NODE/node-v${NODE_VERSION}-linux-x64 $DIR_NODE/v$NODE_VERSION
69-
70- # add node and npm to path so the commands are available
71- ENV NODE_PATH $DIR_NODE/v$NODE_VERSION/lib/node_modules
72- ENV PATH $DIR_NODE/v$NODE_VERSION/bin:$PATH
53+ FROM node:20-alpine
7354
74- # confirm installation
75- RUN node -v && npm -v
55+ RUN apk add --no-cache tzdata
7656
7757COPY --from=1 /opt/bundle /opt/core
7858COPY meteor/docker-entrypoint.sh /opt
0 commit comments