use apt-get instead of apt and --no-install-recommends option

Co-authored-by: Milas Bowman <milasb@gmail.com>
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
This commit is contained in:
Guillaume Lours 2022-07-04 10:00:37 +02:00 committed by Guillaume Lours
parent a6835e4359
commit 3f0b5a972d
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View File

@ -99,4 +99,4 @@ You can use this sample with the Dev Environments feature of Docker Desktop.
To develop directly the backend service inside containers, you just need to use the https git url of the sample: To develop directly the backend service inside containers, you just need to use the https git url of the sample:
`https://github.com/docker/awesome-compose/tree/master/traefik-golang` `https://github.com/docker/awesome-compose/tree/master/traefik-golang`
![page](./dev-envs.png) ![page](../dev-envs.png)

View File

@ -9,8 +9,8 @@ RUN CGO_ENABLED=0 go build -o backend main.go
FROM build as dev-envs FROM build as dev-envs
RUN <<EOF RUN <<EOF
apt update apt-get update
apt install git apt-get install -y --no-install-recommends git
EOF EOF
RUN <<EOF RUN <<EOF

Binary file not shown.

Before

Width:  |  Height:  |  Size: 233 KiB