Skip to content

Commit

Permalink
node package (#8)
Browse files Browse the repository at this point in the history
* node package

* build using nodejs github source

---------

Co-authored-by: Andrew Gouin <[email protected]>
  • Loading branch information
danb and agouin authored Jun 9, 2023
1 parent 5fb0d81 commit 28bf910
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions node.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM alpine AS builder
RUN apk add git python3 gcc g++ linux-headers make
RUN git clone https://github.com/nodejs/node --single-branch --branch v18.16.0 && \
cd node && \
./configure --fully-static --enable-static && \
make -j$(nproc)

RUN cd node && make install

FROM scratch
LABEL org.opencontainers.image.source="https://github.com/strangelove-ventures/infra-toolkit"
COPY --from=builder /usr/local /usr/local

0 comments on commit 28bf910

Please sign in to comment.