Skip to content

Commit

Permalink
Bump base images in API and UI Dockerfiles
Browse files Browse the repository at this point in the history
UI is now using node 16 so bumping the node version in Dockerfile.
Also bumping base images of API and DB-migration to use alpine:3.14.

Signed-off-by: vinamra28 <[email protected]>
  • Loading branch information
vinamra28 authored and tekton-robot committed Oct 25, 2021
1 parent 199d5a2 commit 584aebe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM golang:1.15-alpine3.12 AS builder
FROM golang:1.15-alpine3.14 AS builder

WORKDIR /go/src/github.com/tektoncd/hub/api
COPY . .

RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o api-server ./cmd/api/...

FROM alpine:3.12
FROM alpine:3.14

RUN apk --no-cache add git ca-certificates && addgroup -S hub && adduser -S hub -G hub
USER hub
Expand Down
4 changes: 2 additions & 2 deletions api/db.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM golang:1.15-alpine3.12 AS builder
FROM golang:1.15-alpine3.14 AS builder

WORKDIR /go/src/github.com/tektoncd/hub/api
COPY . .

RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o db-migration ./cmd/db/...

FROM alpine:3.12
FROM alpine:3.14

RUN apk --no-cache add ca-certificates && addgroup -S hub && adduser -S hub -G hub
USER hub
Expand Down
2 changes: 1 addition & 1 deletion ui/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:12-alpine as BUILD
FROM node:16-alpine3.14 as BUILD
WORKDIR /app

# install deps and the copy the src to speed up docker build
Expand Down

0 comments on commit 584aebe

Please sign in to comment.