-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (22 loc) · 750 Bytes
/
Dockerfile
File metadata and controls
32 lines (22 loc) · 750 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
FROM ruby:3.1-slim
RUN apt-get update && apt-get install -y --no-install-recommends git rrdtool ca-certificates && \
rm -rf /var/lib/apt/lists/*
RUN gem install webrick --no-document && \
gem install rack -v "~> 2.2" --no-document
COPY . /tmp/gri
WORKDIR /tmp/gri
RUN gem build *.gemspec && \
gem install ./*.gem --no-document --ignore-dependencies && \
rm -rf /tmp/gri
RUN useradd -m -s /bin/bash gri && \
mkdir -p /usr/local/gri && \
chown gri:gri /usr/local/gri
WORKDIR /usr/local/gri
COPY --chown=gri:gri <<EOF ./gri.conf
root-dir /usr/local/gri
gritab-path /usr/local/gri/gritab
font DEFAULT:0:IPAPGothic
EOF
EXPOSE 9292
USER gri
CMD while true; do /usr/local/bundle/bin/gri; sleep 60; done