Added missing compiler flags to Dockerfile

main
Jef Roosens 2022-01-15 10:31:11 +01:00
parent 1bd3ed3523
commit 5b031b12ce
Signed by: Jef Roosens
GPG Key ID: 955C0660072F691F
2 changed files with 7 additions and 9 deletions

View File

@ -1,13 +1,14 @@
branches: [main, dev]
# branches: [main, dev]
platform: linux/amd64
pipeline:
dev:
image: plugins/docker
image: woodpeckerci/plugin-docker-buildx
secrets: [ docker_username, docker_password ]
settings:
repo: chewingbever/vieter
tag: dev
platforms: [ linux/arm/v7, linux/arm64/v8, linux/amd64 ]
when:
event: push
branch: dev
@ -25,5 +26,5 @@ pipeline:
event: tag
branch: main
depends_on:
- builder
# depends_on:
# - builder

View File

@ -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" ]