Added missing compiler flags to Dockerfile
parent
1bd3ed3523
commit
5b031b12ce
|
@ -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
|
||||
|
|
|
@ -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" ]
|
||||
|
|
Loading…
Reference in New Issue