Skip to content

Commit

Permalink
Reduce Docker image size and update base image
Browse files Browse the repository at this point in the history
  • Loading branch information
ngosang committed Jul 4, 2021
1 parent 13f5316 commit 096fade
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
22 changes: 13 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
FROM debian:bullseye-20210408-slim
FROM debian:bullseye-20210621-slim
LABEL maintainer="ngosang@hotmail.es"

RUN apt-get update && \
# Install packages
apt-get -y install amule-daemon git pwgen sudo && \
apt-get clean
# Install a nicer Web UI
cd /usr/share/amule/webserver && \
git clone https://github.com/MatteoRagni/AmuleWebUI-Reloaded && \
rm -rf AmuleWebUI-Reloaded/.git AmuleWebUI-Reloaded/doc-images && \
# Clean up
apt-get -y --purge remove git && \
apt-get -y autoremove && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /var/log/*

# Install a nicer Web UI
RUN cd /usr/share/amule/webserver \
&& git clone https://github.com/MatteoRagni/AmuleWebUI-Reloaded \
&& rm -rf AmuleWebUI-Reloaded/.git AmuleWebUI-Reloaded/doc-images

# fix bug https://github.com/amule-project/amule/issues/265
# Fix bug https://github.com/amule-project/amule/issues/265
# grep -rnw '/usr/share/amule/webserver' -e 'amule_stats_kad.png'
RUN sed -i 's/amule_stats_kad.png//g' /usr/share/amule/webserver/default/amuleweb-main-kad.php \
&& sed -i 's/amule_stats_kad.png//g' /usr/share/amule/webserver/AmuleWebUI-Reloaded/amuleweb-main-kad.php \
Expand All @@ -25,4 +29,4 @@ EXPOSE 4711/tcp 4712/tcp 4662/tcp 4665/udp 4672/udp
ENTRYPOINT ["/home/amule/amule-entrypoint.sh"]

# HELP
# docker build -t ngosang/amule:2.3.3-1 --platform linux/amd64 .
# docker build -t ngosang/amule:2.3.3-2 --platform linux/amd64 .
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "ngosang-docker-amule",
"version": "2.3.3-1",
"version": "2.3.3-2",
"author": "ngosang@hotmail.es"
}

0 comments on commit 096fade

Please sign in to comment.