1
1
FROM docker.io/ruby:3-slim-bookworm
2
2
3
- LABEL org.opencontainers.image.title="LinuxFr.org boards"
4
- LABEL org.opencontainers.image.description="Push notifications for chat rooms of LinuxFr"
3
+ LABEL org.opencontainers.image.title="Board for LinuxFr.org"
4
+ LABEL org.opencontainers.image.description="Users of the LinuxFr.org website can chat on a space called the board (« la tribune » in french). \
5
+ This Ruby daemon notifies the users when something is said with Server-Sent Event / EventSource."
5
6
LABEL org.opencontainers.image.source="https://github.com/linuxfrorg/board-sse-linuxfr.org"
6
- LABEL org.opencontainers.image.url="https://github.com/linuxfrorg/linuxfr.org/blob/master/Container.md "
7
+ LABEL org.opencontainers.image.url="https://github.com/linuxfrorg/board-sse- linuxfr.org"
7
8
LABEL org.opencontainers.image.licenses="AGPL-3.0-only"
8
9
LABEL org.opencontainers.image.version="ruby3-bookworm"
9
10
LABEL org.opencontainers.image.authors=
"Adrien Dorsaz <[email protected] >"
10
11
11
12
ARG UID=1200
12
13
13
- RUN apt-get update \
14
+ RUN \
15
+ set -eux; \
16
+ IFS=$'\n\t ' ; \
17
+ apt-get update; \
14
18
# Install dependencies \
15
- && apt-get install -y --no-install-recommends \
16
- build-essential git ruby ruby-dev \
17
- && apt-get clean
19
+ apt-get install -y --no-install-recommends \
20
+ build-essential git ruby ruby-dev; \
21
+ apt-get clean;
18
22
19
23
USER ${UID}
20
24
WORKDIR /linuxfr-board
21
25
ENV HOME=/linuxfr-board
22
26
23
27
# Install board-linuxfr
24
- # RUN gem install board-linuxfr -v '~> 0.1.4'
25
-
26
- # Temporary build board-linuxfr from sources
27
- RUN git clone https://github.com/linuxfrorg/board-sse-linuxfr.org.git --branch ruby3 \
28
- && cd board-sse-linuxfr.org \
29
- && gem build board-linuxfr.gemspec \
30
- && gem install ./board-linuxfr-*.gem
28
+ RUN gem install board-sse-linuxfr.org -v '~> 1.0.0'
31
29
32
30
# Clean development dependencies
33
31
USER 0
@@ -36,4 +34,4 @@ RUN apt purge --autoremove -y build-essential git ruby-dev
36
34
USER ${UID}
37
35
EXPOSE 9000
38
36
39
- CMD ["board-linuxfr" ]
37
+ CMD ["board-sse- linuxfr.org " ]
0 commit comments