-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (26 loc) · 960 Bytes
/
Dockerfile
File metadata and controls
34 lines (26 loc) · 960 Bytes
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
# =============================================================================
# Target: base
#
# The base stage scaffolds elements which are common to building and running
# the application, such as installing ca-certificates, creating the app user,
# and installing runtime system dependencies.
FROM ruby:3-slim AS base
# ------------------------------------------------------------
# Install packages common to dev and prod.
# Install standard packages from the Debian repository
RUN apt-get update -qq && \
apt-get install -y --no-install-recommends \
build-essential \
ca-certificates
# ------------------------------------------------------------
# Run configuration
# All subsequent commands are executed relative to this directory.
WORKDIR /opt/app
# Install dependencies
COPY Gemfile* ./
RUN bundle install --system
# Copy the codebase
COPY . .
# Add binstubs to the path.
ENV PATH="/opt/app/bin:$PATH"
CMD ["rake", "-T"]