forked from thewca/worldcubeassociation.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.dev
33 lines (25 loc) · 809 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
FROM ruby:3.3.5
WORKDIR /rails
ENV DEBIAN_FRONTEND noninteractive
# Add PPA needed to install nodejs.
# From: https://github.com/nodesource/distributions#debian-and-ubuntu-based-distributions
RUN apt-get update -qq && \
apt-get install --no-install-recommends -y \
ca-certificates \
curl \
gnupg
ARG NODE_MAJOR=20
RUN curl -fsSL https://deb.nodesource.com/setup_${NODE_MAJOR}.x | bash && \
apt-get install nodejs
# Enable 'corepack' feature that lets NPM download the package manager on-the-fly as required.
RUN corepack enable
RUN apt-get update -qq && \
apt-get install --no-install-recommends -y \
git \
build-essential \
mariadb-client \
libssl-dev \
libyaml-dev \
tzdata
RUN gem update --system && gem install bundler
EXPOSE 3000