Skip to content

Commit 6a4ec1d

Browse files
committed
fix: update all dockerfiles to node 20
1 parent 8a0b6a6 commit 6a4ec1d

File tree

9 files changed

+18
-60
lines changed

9 files changed

+18
-60
lines changed

.github/actions/setup-meteor/action.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,5 @@ description: "Setup Meteor"
33
runs:
44
using: "composite"
55
steps:
6-
- run: curl "https://install.meteor.com/?release=2.13.3" | sh
7-
shell: bash
8-
- run: meteor npm install -g yarn
6+
- run: curl "https://install.meteor.com/?release=3.0.4" | sh
97
shell: bash

meteor/Dockerfile

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# syntax=docker/dockerfile:experimental
22

33
# BUILD WEBUI
4-
FROM node:18
4+
FROM node:20
55
COPY packages /opt/core/packages
66
WORKDIR /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:
2121
ENV NODE_ENV_TMP $NODE_ENV
@@ -37,7 +37,7 @@ RUN rm -R /opt/core/packages/webui
3737

3838
# Force meteor to setup the runtime
3939
RUN meteor --version --allow-superuser
40-
RUN meteor corepack enable
40+
RUN corepack enable
4141
RUN yarn install
4242

4343
# Restore the NODE_ENV variable:
@@ -50,29 +50,9 @@ RUN npm install
5050
RUN 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

7757
COPY --from=1 /opt/bundle /opt/core
7858
COPY meteor/docker-entrypoint.sh /opt

meteor/Dockerfile.circle

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,7 @@
11
# DEPLOY IMAGE
2-
FROM alpine:3.19
2+
FROM node:20-alpine
33

4-
ENV NODE_VERSION=14.21.4
5-
ENV NODE_URL="https://static.meteor.com/dev-bundle-node-os/unofficial-builds/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.gz"
6-
ENV DIR_NODE=/usr/local
7-
8-
RUN apk add --no-cache \
9-
libstdc++ \
10-
&& apk add --no-cache --virtual .build-deps-full \
11-
binutils-gold \
12-
curl \
13-
gnupg \
14-
xz
15-
16-
RUN echo $NODE_URL \
17-
&& curl -sSL "$NODE_URL" | tar -xz -C /usr/local/ && mv $DIR_NODE/node-v${NODE_VERSION}-linux-x64 $DIR_NODE/v$NODE_VERSION
18-
19-
# add node and npm to path so the commands are available
20-
ENV NODE_PATH $DIR_NODE/v$NODE_VERSION/lib/node_modules
21-
ENV PATH $DIR_NODE/v$NODE_VERSION/bin:$PATH
22-
23-
# confirm installation
24-
RUN node -v && npm -v
4+
RUN apk add --no-cache tzdata
255

266
COPY meteor/bundle /opt/core
277
COPY meteor/docker-entrypoint.sh /opt

packages/live-status-gateway/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:experimental
22
# BUILD IMAGE
3-
FROM node:18
3+
FROM node:20
44
WORKDIR /opt
55

66
COPY package.json lerna.json yarn.lock tsconfig.json ./
@@ -15,7 +15,7 @@ RUN yarn build
1515
RUN yarn install --check-files --frozen-lockfile --production --force --ignore-scripts # purge dev-dependencies
1616

1717
# DEPLOY IMAGE
18-
FROM node:18-alpine
18+
FROM node:20-alpine
1919
RUN apk add --no-cache tzdata
2020

2121
COPY --from=0 /opt/package.json /opt/package.json

packages/live-status-gateway/Dockerfile.circle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18-alpine
1+
FROM node:20-alpine
22
RUN apk add --no-cache tzdata
33

44
COPY package.json /opt/

packages/mos-gateway/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:experimental
22
# BUILD IMAGE
3-
FROM node:18
3+
FROM node:20
44
WORKDIR /opt
55

66
COPY . .
@@ -13,7 +13,7 @@ RUN yarn plugin import workspace-tools
1313
RUN yarn workspaces focus mos-gateway --production # purge dev-dependencies
1414

1515
# DEPLOY IMAGE
16-
FROM node:18-alpine
16+
FROM node:20-alpine
1717
RUN apk add --no-cache tzdata
1818

1919
COPY --from=0 /opt/package.json /opt/package.json

packages/mos-gateway/Dockerfile.circle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18-alpine
1+
FROM node:20-alpine
22
RUN apk add --no-cache tzdata
33

44
COPY package.json /opt/

packages/playout-gateway/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:experimental
22
# BUILD IMAGE
3-
FROM node:18
3+
FROM node:20
44
WORKDIR /opt
55

66
COPY . .
@@ -13,7 +13,7 @@ RUN yarn plugin import workspace-tools
1313
RUN yarn workspaces focus playout-gateway --production # purge dev-dependencies
1414

1515
# DEPLOY IMAGE
16-
FROM node:18-alpine
16+
FROM node:20-alpine
1717
RUN apk add --no-cache tzdata
1818

1919
COPY --from=0 /opt/package.json /opt/package.json

packages/playout-gateway/Dockerfile.circle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18-alpine
1+
FROM node:20-alpine
22
RUN apk add --no-cache tzdata
33

44
COPY package.json /opt/

0 commit comments

Comments
 (0)