chore: align parameter order across dockerfiles
This commit is contained in:
parent
9abaa2ff3b
commit
40fb13b442
3 changed files with 11 additions and 9 deletions
|
|
@ -25,10 +25,10 @@ FROM golang:1.18-alpine as builder
|
|||
# Ca-certificates is required to call HTTPS endpoints.
|
||||
RUN apk update && apk add --no-cache git ca-certificates tzdata alpine-sdk && update-ca-certificates
|
||||
|
||||
WORKDIR /build
|
||||
# define RELEASE=1 to hide commit hash
|
||||
ARG RELEASE={{ env "RELEASE" }}
|
||||
|
||||
# define --build-arg RELEASE=1 to hide commit hash
|
||||
ARG RELEASE
|
||||
WORKDIR /build
|
||||
|
||||
# install go tools and cache modules
|
||||
COPY Makefile .
|
||||
|
|
|
|||
|
|
@ -1,16 +1,17 @@
|
|||
# executes binary build excluding UI
|
||||
|
||||
# define RELEASE=1 to hide commit hash
|
||||
ARG RELEASE={{ env "RELEASE" }}
|
||||
FROM golang:1.18-alpine as builder
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
# Install git + SSL ca certificates.
|
||||
# Git is required for fetching the dependencies.
|
||||
# Ca-certificates is required to call HTTPS endpoints.
|
||||
RUN apk update && apk add --no-cache git ca-certificates tzdata alpine-sdk && update-ca-certificates
|
||||
|
||||
# define RELEASE=1 to hide commit hash
|
||||
ARG RELEASE={{ env "RELEASE" }}
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
# install go tools and cache modules
|
||||
COPY Makefile .
|
||||
COPY go.mod .
|
||||
|
|
|
|||
|
|
@ -21,8 +21,6 @@ RUN make clean ui
|
|||
|
||||
# STEP 2 build executable binary
|
||||
|
||||
# define RELEASE=1 to hide commit hash
|
||||
ARG RELEASE={{ env "RELEASE" }}
|
||||
FROM golang:1.18-alpine as builder
|
||||
|
||||
# Install git + SSL ca certificates.
|
||||
|
|
@ -30,6 +28,9 @@ FROM golang:1.18-alpine as builder
|
|||
# Ca-certificates is required to call HTTPS endpoints.
|
||||
RUN apk update && apk add --no-cache git ca-certificates tzdata alpine-sdk && update-ca-certificates
|
||||
|
||||
# define RELEASE=1 to hide commit hash
|
||||
ARG RELEASE={{ env "RELEASE" }}
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
# install go tools and cache modules
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue