Added missing compiler flags to Dockerfile

main
Jef Roosens 2022-01-15 10:31:11 +01:00
parent 1bd3ed3523
commit 5b031b12ce
Signed by untrusted user: 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 platform: linux/amd64
pipeline: pipeline:
dev: dev:
image: plugins/docker image: woodpeckerci/plugin-docker-buildx
secrets: [ docker_username, docker_password ] secrets: [ docker_username, docker_password ]
settings: settings:
repo: chewingbever/vieter repo: chewingbever/vieter
tag: dev tag: dev
platforms: [ linux/arm/v7, linux/arm64/v8, linux/amd64 ]
when: when:
event: push event: push
branch: dev branch: dev
@ -25,5 +26,5 @@ pipeline:
event: tag event: tag
branch: main branch: main
depends_on: # depends_on:
- builder # - builder

View File

@ -5,17 +5,14 @@ WORKDIR /app
# Copy over source code & build production binary # Copy over source code & build production binary
COPY src ./src COPY src ./src
COPY Makefile ./ COPY Makefile ./
RUN make prod RUN LDFLAGS='-lz -lbz2 -llzma -lexpat -lzstd -llz4 -static' \
make prod
FROM alpine:3.15 FROM alpine:3.15
ENV REPO_DIR=/data ENV REPO_DIR=/data
RUN apk update && \
apk add --no-cache \
libarchive
COPY --from=builder /app/pvieter /usr/local/bin/vieter COPY --from=builder /app/pvieter /usr/local/bin/vieter
ENTRYPOINT [ "/usr/local/bin/vieter" ] ENTRYPOINT [ "/usr/local/bin/vieter" ]