Skip to content

Commit

Permalink
fix(docker): fix syntax for dockerfile (#1354)
Browse files Browse the repository at this point in the history
  • Loading branch information
ykzts authored Dec 8, 2024
1 parent 64c44d8 commit 5638f9d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 && \
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5638f9d

Please sign in to comment.