-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
31 lines (28 loc) · 816 Bytes
/
Dockerfile
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
# Our Docker image will be based on ruby:2-slim
# it is a very light docker image.
FROM ruby:3.3.4-slim
LABEL author="Sujay Kundu"
LABEL version="1.0.5"
# Lets install all dependencies
# including git and Bundler 2.5.14
ENV BUNDLER_VERSION 2.5.14
RUN apt-get update && \
apt-get install --no-install-recommends -y \
bats \
build-essential \
ca-certificates \
curl \
libffi7 \
make \
shellcheck \
libffi7 \
git-all \
&& gem install bundler:2.5.14 \
&& bundle config --global silence_root_warning 1 \
&& apt-get clean
# This is our entrypoint to our custom scripts
# more about that in a sec
COPY entrypoint.sh /entrypoint.sh
# Use the entrypoint.sh file as the container entrypoint
# when Github executes our Docker container
ENTRYPOINT ["sh", "/entrypoint.sh"]