File tree Expand file tree Collapse file tree 16 files changed +224
-6
lines changed Expand file tree Collapse file tree 16 files changed +224
-6
lines changed Original file line number Diff line number Diff line change 68
68
- name : Checkout
69
69
uses : actions/checkout@v4
70
70
71
+ - name : Build core base image
72
+ if : ${{ endsWith(matrix.variant, '-core') }}
73
+ uses : docker/build-push-action@v5
74
+ with :
75
+ push : false
76
+ load : true
77
+ context : .
78
+ file : ./${{ steps.short-version.outputs.result }}/${{ matrix.base }}/Dockerfile
79
+ tags : node:${{ matrix.version }}-${{ matrix.base }}
80
+
71
81
- name : Build image
72
82
uses : docker/build-push-action@v5
73
83
with :
91
101
[ "${output}" = 'success' ]
92
102
93
103
- name : Test for npm
104
+ if : ${{ ! endsWith(matrix.variant, '-core') }}
94
105
run : docker run --rm node:${{ matrix.version }}-${{ matrix.variant }} npm --version
95
106
96
107
- name : Test for yarn
108
+ if : ${{ ! endsWith(matrix.variant, '-core') }}
97
109
run : docker run --rm node:${{ matrix.version }}-${{ matrix.variant }} yarn --version
Original file line number Diff line number Diff line change
1
+ FROM debian:bookworm-slim
2
+
3
+ RUN groupadd --gid 1000 node \
4
+ && useradd --uid 1000 --gid node --shell /bin/bash --create-home node
5
+
6
+ ENV NODE_VERSION 18.20.1
7
+
8
+ COPY --from=node:18.20.1-bookworm-slim --link /usr/local/bin/ /usr/local/bin/
9
+ COPY --from=node:18.20.1-bookworm-slim --link /usr/local/include/node/ /usr/local/include/node/
10
+
11
+ ENTRYPOINT ["docker-entrypoint.sh" ]
12
+
13
+ CMD [ "node" ]
Original file line number Diff line number Diff line change
1
+ FROM debian:bullseye-slim
2
+
3
+ RUN groupadd --gid 1000 node \
4
+ && useradd --uid 1000 --gid node --shell /bin/bash --create-home node
5
+
6
+ ENV NODE_VERSION 18.20.1
7
+
8
+ COPY --from=node:18.20.1-bullseye-slim --link /usr/local/bin/ /usr/local/bin/
9
+ COPY --from=node:18.20.1-bullseye-slim --link /usr/local/include/node/ /usr/local/include/node/
10
+
11
+ ENTRYPOINT ["docker-entrypoint.sh" ]
12
+
13
+ CMD [ "node" ]
Original file line number Diff line number Diff line change
1
+ FROM debian:buster-slim
2
+
3
+ RUN groupadd --gid 1000 node \
4
+ && useradd --uid 1000 --gid node --shell /bin/bash --create-home node
5
+
6
+ ENV NODE_VERSION 18.20.1
7
+
8
+ COPY --from=node:18.20.1-buster-slim --link /usr/local/bin/ /usr/local/bin/
9
+ COPY --from=node:18.20.1-buster-slim --link /usr/local/include/node/ /usr/local/include/node/
10
+
11
+ ENTRYPOINT ["docker-entrypoint.sh" ]
12
+
13
+ CMD [ "node" ]
Original file line number Diff line number Diff line change
1
+ FROM debian:bookworm-slim
2
+
3
+ RUN groupadd --gid 1000 node \
4
+ && useradd --uid 1000 --gid node --shell /bin/bash --create-home node
5
+
6
+ ENV NODE_VERSION 20.12.1
7
+
8
+ COPY --from=node:20.12.1-bookworm-slim --link /usr/local/bin/ /usr/local/bin/
9
+ COPY --from=node:20.12.1-bookworm-slim --link /usr/local/include/node/ /usr/local/include/node/
10
+
11
+ ENTRYPOINT ["docker-entrypoint.sh" ]
12
+
13
+ CMD [ "node" ]
Original file line number Diff line number Diff line change
1
+ FROM debian:bullseye-slim
2
+
3
+ RUN groupadd --gid 1000 node \
4
+ && useradd --uid 1000 --gid node --shell /bin/bash --create-home node
5
+
6
+ ENV NODE_VERSION 20.12.1
7
+
8
+ COPY --from=node:20.12.1-bullseye-slim --link /usr/local/bin/ /usr/local/bin/
9
+ COPY --from=node:20.12.1-bullseye-slim --link /usr/local/include/node/ /usr/local/include/node/
10
+
11
+ ENTRYPOINT ["docker-entrypoint.sh" ]
12
+
13
+ CMD [ "node" ]
Original file line number Diff line number Diff line change
1
+ FROM debian:buster-slim
2
+
3
+ RUN groupadd --gid 1000 node \
4
+ && useradd --uid 1000 --gid node --shell /bin/bash --create-home node
5
+
6
+ ENV NODE_VERSION 20.12.1
7
+
8
+ COPY --from=node:20.12.1-buster-slim --link /usr/local/bin/ /usr/local/bin/
9
+ COPY --from=node:20.12.1-buster-slim --link /usr/local/include/node/ /usr/local/include/node/
10
+
11
+ ENTRYPOINT ["docker-entrypoint.sh" ]
12
+
13
+ CMD [ "node" ]
Original file line number Diff line number Diff line change
1
+ FROM debian:bookworm-slim
2
+
3
+ RUN groupadd --gid 1000 node \
4
+ && useradd --uid 1000 --gid node --shell /bin/bash --create-home node
5
+
6
+ ENV NODE_VERSION 21.7.2
7
+
8
+ COPY --from=node:21.7.2-bookworm-slim --link /usr/local/bin/ /usr/local/bin/
9
+ COPY --from=node:21.7.2-bookworm-slim --link /usr/local/include/node/ /usr/local/include/node/
10
+
11
+ ENTRYPOINT ["docker-entrypoint.sh" ]
12
+
13
+ CMD [ "node" ]
Original file line number Diff line number Diff line change
1
+ FROM debian:bullseye-slim
2
+
3
+ RUN groupadd --gid 1000 node \
4
+ && useradd --uid 1000 --gid node --shell /bin/bash --create-home node
5
+
6
+ ENV NODE_VERSION 21.7.2
7
+
8
+ COPY --from=node:21.7.2-bullseye-slim --link /usr/local/bin/ /usr/local/bin/
9
+ COPY --from=node:21.7.2-bullseye-slim --link /usr/local/include/node/ /usr/local/include/node/
10
+
11
+ ENTRYPOINT ["docker-entrypoint.sh" ]
12
+
13
+ CMD [ "node" ]
Original file line number Diff line number Diff line change
1
+ FROM debian:name-slim
2
+
3
+ RUN groupadd --gid 1000 node \
4
+ && useradd --uid 1000 --gid node --shell /bin/bash --create-home node
5
+
6
+ ENV NODE_VERSION 0.0.0
7
+
8
+ COPY --from=node:0.0.0-slim --link /usr/local/bin/ /usr/local/bin/
9
+ COPY --from=node:0.0.0-slim --link /usr/local/include/node/ /usr/local/include/node/
10
+
11
+ ENTRYPOINT ["docker-entrypoint.sh"]
12
+
13
+ CMD [ "node" ]
You can’t perform that action at this time.
0 commit comments