chore: align parameter order across dockerfiles

This commit is contained in:
andig 2022-03-31 10:26:27 +02:00
parent 9abaa2ff3b
commit 40fb13b442
3 changed files with 11 additions and 9 deletions

View file

@ -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 .

View file

@ -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 .

View file

@ -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