Skip to content

Commit

Permalink
slim image
Browse files Browse the repository at this point in the history
  • Loading branch information
mkuratczyk committed Jan 24, 2025
1 parent 96e70d7 commit ff77421
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packaging/docker-image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG OTP_VERSION="27"

FROM erlang:${OTP_VERSION}
FROM erlang:${OTP_VERSION}-slim

ENV RABBITMQ_DATA_DIR=/var/lib/rabbitmq

Expand Down Expand Up @@ -46,8 +46,6 @@ RUN set -eux; \
sed -i 's/^SYS_PREFIX=.*$/SYS_PREFIX=/' "$RABBITMQ_HOME/sbin/rabbitmq-defaults"; \
grep -qE '^SYS_PREFIX=$' "$RABBITMQ_HOME/sbin/rabbitmq-defaults"; \
chown -R rabbitmq:rabbitmq "$RABBITMQ_HOME"; \
apt-get remove -y --auto-remove build-essential gcc cpp autoconf python3 wx-common \
x11-common perl mysql-common make python3 subversion ; \
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false;

# set home so that any `--user` knows where to put the erlang cookie
Expand Down

0 comments on commit ff77421

Please sign in to comment.