forked from rubyjs/libv8-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (23 loc) · 840 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
ARG RUBY_VERSION=2.4
FROM ruby:${RUBY_VERSION}
RUN test ! -f /etc/alpine-release || apk add --no-cache build-base bash python2 python3 git curl tar
RUN mkdir -p /code
WORKDIR /code
ARG NODE_VERSION=16.10.0
COPY libexec/download-node /code/libexec/
RUN ./libexec/download-node ${NODE_VERSION}
COPY libexec/extract-node /code/libexec/
COPY patch/* /code/patch/
RUN ./libexec/extract-node ${NODE_VERSION}
COPY libexec/build-libv8 /code/libexec/
RUN ./libexec/build-libv8 ${NODE_VERSION}
COPY libexec/build-monolith /code/libexec/
RUN ./libexec/build-monolith ${NODE_VERSION}
COPY libexec/inject-libv8 /code/libexec/
RUN ./libexec/inject-libv8 ${NODE_VERSION}
COPY Gemfile libv8-node.gemspec /code/
COPY lib/libv8/node/version.rb /code/lib/libv8/node/version.rb
RUN bundle install
COPY . /code/
RUN bundle exec rake binary
CMD /bin/bash