Skip to content

Commit e190f86

Browse files
committed
update linuxfr-board container to use the board-sse-linuxfr.org gem version 1.0.0
1 parent 23d930f commit e190f86

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed
Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,31 @@
11
FROM 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."
56
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"
78
LABEL org.opencontainers.image.licenses="AGPL-3.0-only"
89
LABEL org.opencontainers.image.version="ruby3-bookworm"
910
LABEL org.opencontainers.image.authors="Adrien Dorsaz <[email protected]>"
1011

1112
ARG 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

1923
USER ${UID}
2024
WORKDIR /linuxfr-board
2125
ENV 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
3331
USER 0
@@ -36,4 +34,4 @@ RUN apt purge --autoremove -y build-essential git ruby-dev
3634
USER ${UID}
3735
EXPOSE 9000
3836

39-
CMD ["board-linuxfr"]
37+
CMD ["board-sse-linuxfr.org"]

0 commit comments

Comments
 (0)