From 5638f9d0f7f1a4714e00ba8466bbcd193fb4578a Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Sun, 8 Dec 2024 20:53:04 +0900 Subject: [PATCH] fix(docker): fix syntax for dockerfile (#1354) --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8c81624..50f8f32 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ # Start by building the application. -FROM golang:1.23.4-bookworm as build +FROM golang:1.23.4-bookworm AS build -ENV LIBAOM_VERSION 3.8.0 -ENV LIBWEBP_VERSION 1.2.4 +ENV LIBAOM_VERSION=3.8.0 +ENV LIBWEBP_VERSION=1.2.4 RUN \ apt-get update && \ @@ -33,8 +33,8 @@ RUN \ WORKDIR /go/src/manael COPY . . -ENV CGO_CFLAGS -I/tmp/libwebp/include -I/tmp/libaom/include -ENV CGO_LDFLAGS -L/tmp/libwebp/lib -lwebp -L/tmp/libaom/lib -laom -lm +ENV CGO_CFLAGS="-I/tmp/libwebp/include -I/tmp/libaom/include" +ENV CGO_LDFLAGS="-L/tmp/libwebp/lib -lwebp -L/tmp/libaom/lib -laom -lm" RUN go mod download RUN go build -ldflags '-extldflags "-static"' -o /go/bin/manael ./cmd/manael