Update docker images Docker tags
This commit is contained in:
parent
13bbc3ed39
commit
a82671dac2
1 changed files with 6 additions and 6 deletions
12
Dockerfile
12
Dockerfile
|
@ -1,9 +1,9 @@
|
|||
ARG ARCH
|
||||
|
||||
# STEP 1 build executable binary
|
||||
FROM amd64/golang:1.16.6-alpine3.13@sha256:4a66111be0397d2e59cac61d51aac106fe1a090bbc7fc1aed906f29f671b1efc AS builder-amd64
|
||||
FROM arm32v7/golang:1.16.6-alpine3.13@sha256:a16f783ced0fcf4dac014a5ded5bc8fa437f3a5ff14a4b8ec79c17a1ba214e6d AS builder-arm
|
||||
FROM arm64v8/golang:1.16.6-alpine3.13@sha256:7331f6c4317e23cce90fbb4483c83e3a49b262770f525efabb9954187c922307 AS builder-arm64
|
||||
FROM golang:1.16.7-alpine3.13@sha256:eba9c47f522b41337dbac394f18df4b040ba8bdb4e28e4ce0f504780d59acd86 AS builder-amd64
|
||||
FROM arm32v7/golang:1.16.7-alpine3.13@sha256:1f52cd915cb844d697536be79c45f775daa5e3d954c23c0691938370670ed7dd AS builder-arm
|
||||
FROM arm64v8/golang:1.16.7-alpine3.13@sha256:2ce14a0842a200c1edd14e9535f13b15ca03fd98b237d589f8ca971f10a411a3 AS builder-arm64
|
||||
FROM builder-${ARCH} AS builder
|
||||
|
||||
ENV MORTY_VERSION="f5bff1e285d3f973cacf73318e55175edafd633f"
|
||||
|
@ -18,9 +18,9 @@ RUN apk upgrade --no-cache && \
|
|||
RUN go get -d -v && gofmt -l ./ && go build .
|
||||
|
||||
# STEP 2 build the image including only the binary
|
||||
FROM amd64/alpine:3.14.0@sha256:1775bebec23e1f3ce486989bfc9ff3c4e951690df84aa9f926497d82f2ffca9d AS base-amd64
|
||||
FROM arm32v7/alpine:3.14.0@sha256:088557f18d845a348b4039a63c1266b09dfbe45619dc259f05742d902edd5f25 AS base-arm
|
||||
FROM arm64v8/alpine:3.14.0@sha256:53b74ddfc6225e3c8cc84d7985d0f34666e4e8b0b6892a9b2ad1f7516bc21b54 AS base-arm64
|
||||
FROM alpine:3.14.1@sha256:be9bdc0ef8e96dbc428dc189b31e2e3b05523d96d12ed627c37aa2936653258c AS base-amd64
|
||||
FROM arm32v7/alpine:3.14.1@sha256:fb9ac82b4cc94c5a6c416a1c656b3ee84df9290ab4106c260eb959997e759e5e AS base-arm
|
||||
FROM arm64v8/alpine:3.14.1@sha256:bd9137c3bb45dbc40cde0f0e19a8b9064c2bc485466221f5e95eb72b0d0cf82e AS base-arm64
|
||||
FROM base-${ARCH}
|
||||
|
||||
RUN apk upgrade --no-cache && \
|
||||
|
|
Reference in a new issue