-
Notifications
You must be signed in to change notification settings - Fork 101
/
Dockerfile.dev
42 lines (33 loc) · 1.29 KB
/
Dockerfile.dev
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
33
34
35
36
37
38
39
40
41
42
FROM ruby:3.3.5-bullseye
LABEL maintainer="[email protected]"
ENV home .
# Must have packages
RUN apt-get update -qq \
&& apt-get install -y --no-install-recommends vim curl tmux wget netcat \
&& rm -rf /var/lib/apt/lists/*
COPY Gemfile* /srv/app/
WORKDIR /srv/app
RUN gem install foreman
RUN gem install bundler:2.5.11
RUN bundle install
# Dependency for generating the ERD: 'graphviz'
RUN apt-get update -qq \
&& apt-get install -y --no-install-recommends graphviz \
&& rm -rf /var/lib/apt/lists/*
# Chromium
RUN apt-get update -qq && apt-get install -y chromium \
&& rm -rf /var/lib/apt/lists/*
# Node and Yarn
RUN apt-get update -qq \
&& apt-get install -y --no-install-recommends ca-certificates curl gnupg \
&& mkdir -p /etc/apt/keyrings \
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
&& NODE_MAJOR=20 \
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
&& apt-get update -qq \
&& apt-get install --no-install-recommends -y nodejs \
&& apt remove yarn \
&& npm install --global yarn \
&& rm -rf /var/lib/apt/lists/*
# Clean environment
RUN apt-get clean all