Fix alpine version to 3.12 (#952)

Signed-off-by: Sergio Castaño Arteaga <tegioz@icloud.com>
This commit is contained in:
Sergio C. Arteaga 2020-12-09 08:36:01 +01:00 committed by GitHub
parent bcff0bca32
commit d9429c4f1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 12 deletions

View File

@ -1,5 +1,5 @@
# Build backend
FROM golang:1.15-alpine AS backend-builder
FROM golang:1.15-alpine3.12 AS backend-builder
WORKDIR /go/src/github.com/artifacthub/hub
COPY go.* ./
COPY cmd/hub cmd/hub
@ -22,7 +22,7 @@ RUN scripts/prepare-docs.sh
RUN cd docs/www && hugo
# Final stage
FROM alpine:latest
FROM alpine:3.12
RUN apk --no-cache add ca-certificates && addgroup -S hub && adduser -S hub -G hub
USER hub
WORKDIR /home/hub

View File

@ -1,5 +1,5 @@
# Build scanner
FROM golang:1.15-alpine AS scanner-builder
FROM golang:1.15-alpine3.12 AS scanner-builder
WORKDIR /go/src/github.com/artifacthub/scanner
COPY go.* ./
COPY cmd/scanner cmd/scanner
@ -7,12 +7,12 @@ COPY internal internal
RUN cd cmd/scanner && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /scanner .
# Trivy installer
FROM alpine:latest AS trivy-installer
FROM alpine:3.12 AS trivy-installer
RUN apk --no-cache add curl
RUN curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/master/contrib/install.sh | sh -s -- -b /usr/local/bin
# Final stage
FROM alpine:latest
FROM alpine:3.12
RUN apk --no-cache add ca-certificates rpm && addgroup -S scanner && adduser -S scanner -G scanner
USER scanner
WORKDIR /home/scanner

View File

@ -1,5 +1,5 @@
# Build tracker
FROM golang:1.15-alpine AS builder
FROM golang:1.15-alpine3.12 AS builder
WORKDIR /go/src/github.com/artifacthub/hub
COPY go.* ./
COPY cmd/tracker cmd/tracker
@ -7,12 +7,12 @@ COPY internal internal
RUN cd cmd/tracker && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /tracker .
# OPM installer
FROM golang:1.15-alpine AS opm-installer
FROM golang:1.15-alpine3.12 AS opm-installer
RUN apk --no-cache add build-base
RUN GO111MODULE=on go get github.com/operator-framework/operator-registry/cmd/opm@v1.15.1
# Final stage
FROM alpine:latest
FROM alpine:3.12
RUN apk --no-cache add ca-certificates && addgroup -S tracker && adduser -S tracker -G tracker
USER tracker
WORKDIR /home/tracker

View File

@ -1,10 +1,10 @@
# Build tern
FROM golang:1.15-alpine AS tern
FROM golang:1.15-alpine3.12 AS tern
RUN apk --no-cache add git
RUN go get -u github.com/jackc/tern
# Build final image
FROM alpine:latest
FROM alpine:3.12
RUN addgroup -S db-migrator && adduser -S db-migrator -G db-migrator
USER db-migrator
WORKDIR /home/db-migrator

View File

@ -1,10 +1,10 @@
# Build tern
FROM golang:1.15-alpine AS tern
FROM golang:1.15-alpine3.12 AS tern
RUN apk --no-cache add git
RUN go get -u github.com/jackc/tern
# Build final image
FROM alpine:latest
FROM alpine:3.12
RUN apk --no-cache add git perl-app-cpanminus postgresql-client
RUN cpanm --no-wget TAP::Parser::SourceHandler::pgTAP
RUN addgroup -S db-tests && adduser -S db-tests -G db-tests