mirror of
https://github.com/kemko/reproxy.git
synced 2026-01-01 15:55:49 +03:00
add binary distribution with goreleaser
This commit is contained in:
19
Dockerfile.artifacts
Normal file
19
Dockerfile.artifacts
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM goreleaser/goreleaser as build
|
||||
|
||||
WORKDIR /build
|
||||
ADD . /build
|
||||
|
||||
RUN goreleaser --snapshot --skip-publish --rm-dist
|
||||
|
||||
FROM alpine
|
||||
COPY --from=build /build/dist/ /dist/
|
||||
RUN \
|
||||
mkdir -p /artifacts && \
|
||||
cp /dist/*.gz /artifacts/ && \
|
||||
cp /dist/*.zip /artifacts/ && \
|
||||
cp /dist/*.txt /artifacts/ && \
|
||||
cp /dist/*.rpm /artifacts/ && \
|
||||
cp /dist/*.deb /artifacts/ && \
|
||||
ls -la /artifacts/*
|
||||
|
||||
CMD ["sleep", "100"]
|
||||
Reference in New Issue
Block a user