-
Notifications
You must be signed in to change notification settings - Fork 85
Expand file tree
/
Copy pathDockerfile
More file actions
48 lines (37 loc) · 1.34 KB
/
Dockerfile
File metadata and controls
48 lines (37 loc) · 1.34 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
47
48
ARG DISTRIBUTION=debian:bookworm
FROM ${DISTRIBUTION}
LABEL maintainer="[email protected]"
RUN apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
build-essential \
git-core \
autoconf \
ca-certificates \
curl \
libssl-dev \
default-libmysqlclient-dev \
clang clang-tools \
llvm \
valgrind \
libffi-dev \
libyaml-dev \
ruby \
netcat-traditional
# Install libclang-rt-14-dev for Debian Bookworm so that Trilogy builds.
ARG DISTRIBUTION=debian:bookworm
RUN if [ "${DISTRIBUTION}" = "debian:bookworm" ]; then \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y libclang-rt-14-dev; \
fi
# Install libclang-rt-18-dev for Ubuntu Noble so that Trilogy builds.
RUN if [ "${DISTRIBUTION}" = "ubuntu:noble" ]; then \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y libclang-rt-18-dev; \
fi
RUN update-ca-certificates
RUN git clone --depth 1 --single-branch https://github.com/rbenv/ruby-build.git /opt/ruby-build/
ARG RUBY_VERSION=3.4.9
ARG RUBY_BUILD_OPTS=""
RUN CONFIGURE_OPTS="--disable-install-doc ${RUBY_BUILD_OPTS}" /opt/ruby-build/bin/ruby-build ${RUBY_VERSION} /opt/ruby-${RUBY_VERSION}
ENV PATH=/opt/ruby-${RUBY_VERSION}/bin:$PATH
RUN ruby --version
WORKDIR /app
COPY . .
CMD ["script/test"]