Changed up Dockerfile optimisation
parent
964fefc7ee
commit
759dfa6b08
|
@ -7,7 +7,7 @@ COPY src ./src
|
||||||
COPY Makefile ./
|
COPY Makefile ./
|
||||||
|
|
||||||
ENV LDFLAGS='-lz -lbz2 -llzma -lexpat -lzstd -llz4 -static'
|
ENV LDFLAGS='-lz -lbz2 -llzma -lexpat -lzstd -llz4 -static'
|
||||||
RUN make prod
|
RUN v -o pvieter -clags "-O3" src
|
||||||
|
|
||||||
|
|
||||||
FROM alpine:3.15
|
FROM alpine:3.15
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -8,7 +8,7 @@ LARCHIVE_LIB := $(LARCHIVE_DIR)/libarchive/libarchive.so
|
||||||
|
|
||||||
# Custom V command for linking libarchive
|
# Custom V command for linking libarchive
|
||||||
# V := LDFLAGS=$(PWD)/$(LARCHIVE_LIB) v -cflags '-I$(PWD)/$(LARCHIVE_DIR) -I $(PWD)/$(LARCHIVE_DIR)'
|
# V := LDFLAGS=$(PWD)/$(LARCHIVE_LIB) v -cflags '-I$(PWD)/$(LARCHIVE_DIR) -I $(PWD)/$(LARCHIVE_DIR)'
|
||||||
V := v
|
V := v -showcc
|
||||||
|
|
||||||
all: vieter
|
all: vieter
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue