-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.dev
36 lines (29 loc) · 982 Bytes
/
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
FROM ruby:3.3.6-slim-bookworm
RUN \
apt update && \
apt dist-upgrade -yq && \
apt install -y --no-install-recommends \
build-essential \
curl \
git \
lsb-release \
# PostgreSQLやNode.jsのインストールに必要
gnupg
# PostgreSQLのセットアップ
RUN \
curl -sS https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
echo "deb https://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
apt update && \
apt install -y --no-install-recommends \
libpq-dev \
postgresql-client-15
# Node.jsのセットアップ
RUN \
# https://github.com/nodesource/distributions/wiki/How-to-select-the-Node.js-version-to-install
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt install -y --no-install-recommends \
nodejs=20.11.1-1nodesource1
RUN npm install --global [email protected]
RUN gem install bundler -v 2.5.9
WORKDIR /app
CMD ["bash"]