forked from bootstrap-ruby/bootstrap_form
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
21 lines (16 loc) · 573 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
ARG RUBY_VERSION=2.7
ARG DISTRO=bullseye
FROM ruby:$RUBY_VERSION-$DISTRO
RUN mkdir -p /app
ENV HOME /app
WORKDIR /app
ENV GEM_HOME $HOME/vendor/bundle
ENV BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH ./bin:$GEM_HOME/bin:$PATH
RUN (echo 'docker'; echo 'docker') | passwd root
# Yarn installs nodejs.
# Rails wants a newer version of node that we get with the Debian distro.
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && apt-get install -y nodejs
RUN corepack enable && corepack prepare yarn@stable --activate
RUN apt install -y -q yarn sqlite3
EXPOSE 3000