forked from o19s/quepid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.dev
34 lines (26 loc) · 1.02 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
FROM ruby:3.2.2-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 \
&& rm -rf /var/lib/apt/lists/*
COPY Gemfile* /srv/app/
WORKDIR /srv/app
RUN gem install bundler:2.4.9
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 wget --no-check-certificate -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& curl -sL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get update -qq && apt-get install -y --no-install-recommends nodejs yarn netcat \
&& rm -rf /var/lib/apt/lists/*
# Clean environment
RUN apt-get clean all