forked from oracle/truffleruby
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstable.dockerfile
24 lines (18 loc) · 842 Bytes
/
stable.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
FROM buildpack-deps:stable
ENV LANG C.UTF-8
ARG TRUFFLERUBY_VERSION
RUN set -eux ;\
wget -q https://github.com/oracle/truffleruby/releases/download/graal-$TRUFFLERUBY_VERSION/truffleruby-$TRUFFLERUBY_VERSION-linux-amd64.tar.gz ; tar -xzf truffleruby-$TRUFFLERUBY_VERSION-linux-amd64.tar.gz -C /usr/local --strip-components=1 ;\
rm truffleruby-$TRUFFLERUBY_VERSION-linux-amd64.tar.gz ;\
/usr/local/lib/truffle/post_install_hook.sh ;\
ruby --version ;\
gem --version ;\
bundle --version
# don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle
ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH $GEM_HOME/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
CMD [ "irb" ]