Skip to content

Commit

Permalink
Merge pull request #281 from dimityrmirchev/distroless
Browse files Browse the repository at this point in the history
Change base image from alpine to distroless and update go version to 1.17.12
  • Loading branch information
Kostov6 authored Aug 11, 2022
2 parents 3a164bd + 079982c commit a1038d0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .ci/pipeline_definitions
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ docforge:
build: ~
steps:
check:
image: "golang:1.17.2"
image: "golang:1.17.12"
test:
image: "golang:1.17.2"
image: "golang:1.17.12"
build:
image: "golang:1.17.2"
image: "golang:1.17.12"
output_dir: "binary"
integration-test:
image: "eu.gcr.io/gardener-project/gardener/testmachinery/testmachinery-run:stable"
Expand All @@ -42,7 +42,7 @@ docforge:
pull-request: ~
steps:
docs-gen:
image: "golang:1.17.2"
image: "golang:1.17.12"
inputs:
BINARY_PATH: 'binary_path'
depends:
Expand Down
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
#
# SPDX-License-Identifier: Apache-2.0

FROM eu.gcr.io/gardener-project/3rd/alpine:3.12.1
FROM gcr.io/distroless/static-debian11:nonroot

COPY bin/rel/docforge-linux-amd64 /usr/local/bin/docforge
COPY bin/rel/docforge-linux-amd64 /docforge

WORKDIR /

ENTRYPOINT [ "/docforge" ]

0 comments on commit a1038d0

Please sign in to comment.