Skip to content

Commit

Permalink
Try to reduce docker images size
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye116477 committed Sep 15, 2023
1 parent 5335e2a commit 4e888fb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile_ED
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM python:3-slim
# make Apt non-interactive
ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y locales git openssh-client ca-certificates wget tzdata whois curl nodejs npm && pip install GitPython dnspython aiohttp tldextract --no-cache-dir
RUN apt-get update && apt-get install -y locales git openssh-client ca-certificates wget tzdata whois curl nodejs npm --no-install-recommends && pip install GitPython dnspython aiohttp tldextract --no-cache-dir

# uncomment chosen locale to enable it's generation
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && sed -i -e 's/# pl_PL.UTF-8 UTF-8/pl_PL.UTF-8 UTF-8/' /etc/locale.gen
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile_RTM
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM polishfiltersteam/sflb_image:latest

RUN apt-get install -y curl gpg
RUN apt-get install -y curl gpg --no-install-recommends
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
RUN 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
RUN apt-get update && apt-get install -y gh
RUN apt-get update && apt-get install -y gh --no-install-recommends
RUN gh --version
2 changes: 1 addition & 1 deletion Dockerfile_SFLB
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ENV SFLB_tag="SFLB-3.0.11"
ENV SFLB_LOCALES_PATH="/usr/share/locale"
ENV FOP_tag="FOP-3.32"

RUN python3 --version && apt-get update && apt-get install -y git locales openssh-client ca-certificates tzdata gettext-base wget && pip install GitPython requests natsort --no-cache-dir
RUN python3 --version && apt-get update && apt-get install -y git locales openssh-client ca-certificates tzdata gettext-base wget --no-install-recommends && pip install GitPython requests natsort --no-cache-dir

# uncomment chosen locale to enable it's generation
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
Expand Down

0 comments on commit 4e888fb

Please sign in to comment.