-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathdev.Dockerfile
More file actions
46 lines (39 loc) · 1.11 KB
/
Copy pathdev.Dockerfile
File metadata and controls
46 lines (39 loc) · 1.11 KB
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
43
44
45
46
FROM ruby:3.4.3
# Install system dependencies
RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \
--mount=target=/var/cache/apt,type=cache,sharing=locked \
rm -f /etc/apt/apt.conf.d/docker-clean && \
apt-get update -qq && \
apt-get install --no-install-recommends -y \
build-essential \
git \
libpq-dev \
libyaml-dev \
postgresql-client \
libvips \
pkg-config \
curl \
vim \
imagemagick \
libffi-dev \
libopenblas-dev \
liblapack-dev \
ffmpeg \
gettext-base
# Install Node.js and enable Corepack for Yarn Berry
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
apt-get install -y nodejs && \
corepack enable
# Set working directory
WORKDIR /app
# Install application gems
COPY Gemfile Gemfile.lock ./
COPY engines/raffle/raffle.gemspec ./engines/raffle/
RUN bundle install
# Add a script to be executed every time the container starts
COPY entrypoint.dev.sh /usr/bin/
RUN chmod +x /usr/bin/entrypoint.dev.sh
ENTRYPOINT ["entrypoint.dev.sh"]
EXPOSE 3000
# Start the main process
CMD ["bundle", "exec", "bin/dev"]