2023-10-15 00:24:01 +00:00
|
|
|
# Latest official NodeJS image
|
2023-10-15 00:26:53 +00:00
|
|
|
FROM node:current-alpine AS node
|
2023-10-15 00:24:01 +00:00
|
|
|
|
2023-10-11 22:15:36 +00:00
|
|
|
FROM docker:latest
|
2023-03-27 21:37:06 +00:00
|
|
|
|
2023-10-15 00:24:01 +00:00
|
|
|
# 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
|
|
|
|
|
2023-10-15 00:36:26 +00:00
|
|
|
# Install the necessary dependencies for Node.js
|
|
|
|
RUN apk add --no-cache libstdc++ libgcc
|
|
|
|
|
|
|
|
# Install other dependencies
|
2023-10-15 00:37:35 +00:00
|
|
|
RUN apk add --no-cache curl wget git bash
|
2023-10-15 00:36:26 +00:00
|
|
|
|
|
|
|
# Print the version of NodeJS we're running
|
|
|
|
RUN node --version
|