Skip to content

Commit

Permalink
still wip
Browse files Browse the repository at this point in the history
  • Loading branch information
donkeyx committed Jun 19, 2024
1 parent c2c4c45 commit fb2c683
Showing 1 changed file with 11 additions and 23 deletions.
34 changes: 11 additions & 23 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Description: Dockerfile cluster utils service
FROM debian:bookworm-slim

# Metadata
Expand All @@ -13,31 +12,20 @@ WORKDIR /app

COPY ./*.sh /app/

# Update and install basic tools
RUN apt-get update && apt-get install -y \
dnsutils netcat-openbsd curl wget tar gnupg vim tmux zsh screenfetch && \
# Update and install all required tools in one RUN command to minimize layers
RUN apt-get update && apt-get install -y --no-install-recommends \
dnsutils netcat-openbsd curl wget tar gnupg vim tmux zsh \
postgresql-client redis-tools git golang nodejs npm && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Install PostgreSQL client and Redis tools
RUN apt-get update && apt-get install -y \
postgresql-client redis-tools && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# Install Git, Go, Node.js, and npm
RUN apt-get update && apt-get install -y \
git golang nodejs npm && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# # Install MongoDB tools
# RUN curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg --dearmor && \
# echo "deb [ signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 main" | tee /etc/apt/sources.list.d/mongodb-org-7.0.list && \
# apt-get update && apt-get install -y mongodb-org-tools && \
# Uncomment and modify the MongoDB tools installation if needed
# RUN curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | gpg --dearmor -o /usr/share/keyrings/mongodb-server-7.0.gpg && \
# echo "deb [signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg] http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 main" | tee /etc/apt/sources.list.d/mongodb-org-7.0.list && \
# apt-get update && apt-get install -y --no-install-recommends mongodb-org-tools && \
# apt-get clean && \
# rm -rf /var/lib/apt/lists/*
# rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN ./kickstart.sh

ENTRYPOINT ["zsh", "/app/sleeper.sh"]
ENTRYPOINT ["zsh", "/app/sleeper.sh"]

0 comments on commit fb2c683

Please sign in to comment.