Skip to content

Commit

Permalink
docker-image: Fixed debian12, hg install and updatedb
Browse files Browse the repository at this point in the history
  • Loading branch information
th0ma7 committed Jul 30, 2024
1 parent e5c7243 commit 5f9500f
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:bullseye
FROM debian:bookworm
LABEL description="Framework for maintaining and compiling native community packages for Synology devices"
LABEL maintainer="SynoCommunity <https://github.com/SynoCommunity/spksrc/graphs/contributors>"
LABEL url="https://synocommunity.com"
Expand Down Expand Up @@ -33,7 +33,6 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
g++-multilib \
gawk \
gettext \
gh \
git \
gperf \
imagemagick \
Expand Down Expand Up @@ -91,9 +90,18 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
python3-virtualenv \
python3-yaml

# Install hg github tool
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg && \
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null && \
apt update && \
apt install gh

# Clean-up apt db
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Update locate db
RUN updatedb

# Add user
RUN adduser --disabled-password --gecos '' user && \
Expand Down

0 comments on commit 5f9500f

Please sign in to comment.