Skip to content

Commit

Permalink
--no-install-recommends
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Mar 20, 2024
1 parent 1a3ecc2 commit 6134d82
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,14 @@
# Rultor has no dependency on these packages.

FROM ubuntu:22.04
MAINTAINER Yegor Bugayenko <[email protected]>
LABEL Description="This is the default image for Rultor.com" Vendor="Rultor.com" Version="0.0.0"
LABEL Description="This is the default image for Rultor.com" Version="0.0.0"

Check failure on line 35 in Dockerfile

View workflow job for this annotation

GitHub Actions / hadolint

DL3048 style: Invalid label key.
WORKDIR /tmp

ENV DEBIAN_FRONTEND=noninteractive

# To disable IPv6
RUN mkdir ~/.gnupg \
&& echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf
&& printf "disable-ipv6" >> ~/.gnupg/dirmngr.conf

# UTF-8 locale
RUN apt-get clean \

Check failure on line 45 in Dockerfile

View workflow job for this annotation

GitHub Actions / hadolint

SC2028 info: echo may not expand escape sequences. Use printf.

Check failure on line 45 in Dockerfile

View workflow job for this annotation

GitHub Actions / hadolint

DL3008 warning: Pin versions in apt get install. Instead of `apt-get install <package>` use `apt-get install <package>=<version>`

Check failure on line 45 in Dockerfile

View workflow job for this annotation

GitHub Actions / hadolint

DL3009 info: Delete the apt-get lists after installing something

Check failure on line 45 in Dockerfile

View workflow job for this annotation

GitHub Actions / hadolint

DL3015 info: Avoid additional packages by specifying `--no-install-recommends`
Expand All @@ -58,7 +57,7 @@ ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8

# Basic Linux tools
RUN apt-get -y install wget \
RUN apt-get -y --no-install-recommends install wget \

Check failure on line 60 in Dockerfile

View workflow job for this annotation

GitHub Actions / hadolint

DL3008 warning: Pin versions in apt get install. Instead of `apt-get install <package>` use `apt-get install <package>=<version>`
vim \
curl \
sudo \
Expand Down Expand Up @@ -116,7 +115,7 @@ RUN mkdir -p /tmp/download \
# Git 2.0
RUN add-apt-repository ppa:git-core/ppa \
&& apt-get update -y --fix-missing \
&& apt-get -y install git \
&& apt-get -y --no-install-recommends install git \
&& bash -c 'git --version'

# SSH Daemon
Expand Down

0 comments on commit 6134d82

Please sign in to comment.