chore(build): make ALPINE_VERSION variable (build arg) in Dockerfile
This commit is contained in:
parent
5d83bb0308
commit
e388b8cb64
1 changed files with 4 additions and 2 deletions
|
|
@ -1,4 +1,6 @@
|
||||||
FROM golang:1.22-alpine3.19 AS builder
|
ARG ALPINE_VERSION=3.19
|
||||||
|
|
||||||
|
FROM golang:1.22-alpine${ALPINE_VERSION} AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
@ -10,7 +12,7 @@ COPY . .
|
||||||
|
|
||||||
RUN go build -o yggdrasil ./cmd/yggdrasil
|
RUN go build -o yggdrasil ./cmd/yggdrasil
|
||||||
|
|
||||||
FROM alpine:3.19 AS runtime
|
FROM alpine:${ALPINE_VERSION} AS runtime
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue