-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (25 loc) · 897 Bytes
/
Dockerfile
File metadata and controls
32 lines (25 loc) · 897 Bytes
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
FROM ruby:3.4.4
# Update and install basic dependencies
RUN apt-get update -qq && apt-get install -y --no-install-recommends \
build-essential \
curl \
git \
tini \
vim \
gnupg
# Install Node.js 20.x
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y nodejs \
&& npm install -g npm@latest \
&& npm install -g yarn@latest \
&& yarn
ENV APP_HOME /home/loco_motion
WORKDIR $APP_HOME
COPY loco_motion-rails.gemspec $APP_HOME/loco_motion-rails.gemspec
COPY Gemfile Gemfile* $APP_HOME
COPY lib/loco_motion/version.rb $APP_HOME/lib/loco_motion/
RUN bundle install
# Add some aliases to our Bash shell for when we're messing around
RUN echo 'alias be="bundle exec"\nalias la="ls -al"' >> ~/.bashrc
# Run a simple command so that the container will stay running
ENTRYPOINT ["/usr/bin/tini", "--", "tail", "-f", "/dev/null"]