Use busybox as base rather than a completely empty image, for convenience
This commit is contained in:
parent
a7ec157437
commit
bf1552d9a8
|
@ -1,4 +1,4 @@
|
|||
FROM scratch
|
||||
COPY ./emptydir /data
|
||||
FROM busybox
|
||||
RUN mkdir /data
|
||||
COPY ./syndicate-server /
|
||||
CMD ["/syndicate-server", "-c", "/data"]
|
||||
|
|
|
@ -1,17 +1,18 @@
|
|||
all:
|
||||
|
||||
.PHONY: all clean image push syndicate-server
|
||||
|
||||
clean:
|
||||
rm -f syndicate-server
|
||||
docker rmi syndicate-server
|
||||
docker rmi leastfixedpoint/syndicate-server
|
||||
|
||||
image: syndicate-server
|
||||
rm -rf emptydir
|
||||
mkdir emptydir
|
||||
docker build -t leastfixedpoint/$$(./syndicate-server --version | tr ' ' ':') -t leastfixedpoint/syndicate-server:latest .
|
||||
|
||||
push: image
|
||||
docker push leastfixedpoint/$$(./syndicate-server --version | tr ' ' ':')
|
||||
docker push leastfixedpoint/syndicate-server:latest
|
||||
|
||||
syndicate-server: ../target/x86_64-unknown-linux-musl/release/syndicate-server
|
||||
cp -a $< $@
|
||||
syndicate-server:
|
||||
make -C .. x86_64-binary-release
|
||||
cp -a ../target/x86_64-unknown-linux-musl/release/syndicate-server $@
|
||||
|
|
Loading…
Reference in New Issue