From b7c4b1a4be644701f22aff7209602eab766d18a2 Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Mon, 17 Feb 2025 17:54:15 -0500 Subject: [PATCH] chores: Uniformiser case pour statements dans Dockerfile --- Dockerfile | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/Dockerfile b/Dockerfile index 62e0344..fe1894a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,30 +1,30 @@ -FROM golang:1.23 as build +from golang:1.23 as build -LABEL author="Victor Lacasse-Beaudoin " -LABEL license="MIT" -LABEL licensee="AGECEM" -LABEL repo="https://git.agecem.com/agecem/babillard" +label author="Victor Lacasse-Beaudoin " +label license="MIT" +label licensee="AGECEM" +label repo="https://git.agecem.com/agecem/babillard" -WORKDIR /go/src/app +workdir /go/src/app -COPY go.mod go.sum ./ +copy go.mod go.sum ./ -ADD cmd/ cmd/ -ADD pkg/ pkg/ -ADD ui/ ui/ +add cmd/ cmd/ +add pkg/ pkg/ +add ui/ ui/ -RUN CGO_ENABLED=0 go build -a ./cmd/babillard/ +run CGO_ENABLED=0 go build -a ./cmd/babillard/ # Alpine -FROM alpine:3.21 +from alpine:3.21 -RUN apk update && apk upgrade --no-cache +run apk update && apk upgrade --no-cache -WORKDIR /app +workdir /app -ADD contenu/ contenu/ +add contenu/ contenu/ -COPY --from=build /go/src/app/babillard /usr/bin/babillard +copy --from=build /go/src/app/babillard /usr/bin/babillard -CMD ["babillard", "server"] +cmd ["babillard", "server"]