Liam
a9d2757a00
Some checks failed
build nodejs / images:java_${{ matrix.tag }} (20_pnpm) (push) Failing after 16s
build nodejs / images:java_${{ matrix.tag }} (20_yarn) (push) Failing after 15s
build java / images:java_${{ matrix.tag }} (8) (push) Successful in 1m20s
build nodejs / images:java_${{ matrix.tag }} (20) (push) Successful in 1m2s
build java / images:java_${{ matrix.tag }} (8_with_firefox) (push) Successful in 2m32s
25 lines
598 B
Docker
25 lines
598 B
Docker
# Latest official NodeJS image
|
|
FROM node:20-alpine3.17 AS node
|
|
|
|
FROM docker:latest
|
|
|
|
WORKDIR /home/container
|
|
|
|
# Copy Node from the official docker image
|
|
COPY --from=node /usr/local/lib /usr/local/lib
|
|
COPY --from=node /usr/local/include /usr/local/include
|
|
COPY --from=node /usr/local/bin /usr/local/bin
|
|
|
|
# Install the necessary dependencies for Node.js
|
|
RUN apk add --no-cache libstdc++ libgcc
|
|
|
|
# Install other dependencies
|
|
RUN apk add --no-cache curl wget git bash
|
|
|
|
# Print the version of NodeJS we're running
|
|
RUN node --version
|
|
|
|
# Install pnpm
|
|
RUN npm install -g pnpm
|
|
|
|
ENV PNPM_HOME=/usr/local/bin |