-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (28 loc) · 941 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
31
32
# Make sure it matches the Ruby version in .ruby-version and Gemfile
ARG RUBY_VERSION=3.2.0
FROM ruby:$RUBY_VERSION
SHELL ["/bin/bash", "-c"]
ENV NVM_DIR /usr/local/nvm
ENV NODE_VERSION 19.4.0
ENV GEM_HOME="/usr/local/bundle"
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$GEM_HOME/bin:$GEM_HOME/gems/bin:$PATH
RUN mkdir -p $NVM_DIR \
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash \
&& apt-get update -qq && apt-get install -y --no-install-recommends \
build-essential \
libpq-dev \
freetds-dev \
wget \
curl \
software-properties-common \
apt-transport-https \
libssh-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& gem install bundler \
&& source $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default \
&& npm install --global yarn
ENTRYPOINT ["/bin/bash"]