11FROM docker.io/ruby:3-slim-bookworm
22
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."
56LABEL 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"
78LABEL org.opencontainers.image.licenses="AGPL-3.0-only"
89LABEL org.opencontainers.image.version="ruby3-bookworm"
910LABEL org.opencontainers.image.authors="Adrien Dorsaz <adrien@adorsaz.ch>"
1011
1112ARG UID=1200
1213
13- RUN apt-get update \
14+ RUN \
15+ set -eux; \
16+ IFS=$'\n\t ' ; \
17+ apt-get update; \
1418 # 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;
1822
1923USER ${UID}
2024WORKDIR /linuxfr-board
2125ENV HOME=/linuxfr-board
2226
2327# 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'
3129
3230# Clean development dependencies
3331USER 0
@@ -36,4 +34,4 @@ RUN apt purge --autoremove -y build-essential git ruby-dev
3634USER ${UID}
3735EXPOSE 9000
3836
39- CMD ["board-linuxfr" ]
37+ CMD ["board-sse- linuxfr.org " ]
0 commit comments