18 lines
504 B
Plaintext
18 lines
504 B
Plaintext
# Latest official NodeJS image
|
|
FROM node:current-alpine AS node
|
|
|
|
FROM docker:latest
|
|
|
|
# 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 |