Added missing compiler flags to Dockerfile
This commit is contained in:
parent
1bd3ed3523
commit
5b031b12ce
2 changed files with 7 additions and 9 deletions
|
|
@ -5,17 +5,14 @@ WORKDIR /app
|
|||
# Copy over source code & build production binary
|
||||
COPY src ./src
|
||||
COPY Makefile ./
|
||||
RUN make prod
|
||||
RUN LDFLAGS='-lz -lbz2 -llzma -lexpat -lzstd -llz4 -static' \
|
||||
make prod
|
||||
|
||||
|
||||
FROM alpine:3.15
|
||||
|
||||
ENV REPO_DIR=/data
|
||||
|
||||
RUN apk update && \
|
||||
apk add --no-cache \
|
||||
libarchive
|
||||
|
||||
COPY --from=builder /app/pvieter /usr/local/bin/vieter
|
||||
|
||||
ENTRYPOINT [ "/usr/local/bin/vieter" ]
|
||||
|
|
|
|||
Reference in a new issue