Changed to ENV call

main
Jef Roosens 2022-01-15 10:36:23 +01:00
parent 72699725d0
commit ce1e46e2d6
Signed by untrusted user: Jef Roosens
GPG Key ID: 955C0660072F691F
1 changed files with 3 additions and 2 deletions

View File

@ -5,8 +5,9 @@ WORKDIR /app
# Copy over source code & build production binary
COPY src ./src
COPY Makefile ./
RUN LDFLAGS='-lz -lbz2 -llzma -lexpat -lzstd -llz4 -static' \
make prod
ENV LDFLAGS='-lz -lbz2 -llzma -lexpat -lzstd -llz4 -static'
RUN make prod
FROM alpine:3.15